mirror of https://github.com/icsharpcode/ILSpy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.3 KiB
49 lines
1.3 KiB
/* |
|
* Created by SharpDevelop. |
|
* User: Ronny Klier |
|
* Date: 31.05.2011 |
|
* Time: 00:13 |
|
* |
|
* To change this template use Tools | Options | Coding | Edit Standard Headers. |
|
*/ |
|
using System; |
|
using System.Collections; |
|
using System.Text; |
|
using System.Windows; |
|
using System.Windows.Controls; |
|
using System.Windows.Data; |
|
using System.Windows.Documents; |
|
using System.Windows.Input; |
|
using System.Windows.Media; |
|
|
|
namespace ICSharpCode.ILSpy.Controls |
|
{ |
|
/// <summary> |
|
/// Interaction logic for ResourceStringTable.xaml |
|
/// </summary> |
|
public partial class ResourceStringTable : UserControl |
|
{ |
|
public ResourceStringTable(IEnumerable strings) |
|
{ |
|
InitializeComponent(); |
|
// set size to fit decompiler window |
|
// TODO: there should be a more transparent way to do this |
|
MaxWidth = MainWindow.Instance.mainPane.ActualWidth-20; |
|
MaxHeight = MainWindow.Instance.mainPane.ActualHeight-100; |
|
resourceListView.ItemsSource = strings; |
|
} |
|
|
|
void ExecuteCopy(object sender, ExecutedRoutedEventArgs args) |
|
{ |
|
if (resourceListView.SelectionMode == SelectionMode.Single) |
|
return; |
|
else if (resourceListView.SelectionMode == SelectionMode.Multiple) |
|
return; |
|
} |
|
|
|
void CanExecuteCopy(object sender, CanExecuteRoutedEventArgs args) |
|
{ |
|
args.CanExecute = true; |
|
} |
|
} |
|
} |