From 7d3df0490395aa115ea40afc1d1e8f42d328e136 Mon Sep 17 00:00:00 2001 From: Ronny Klier Date: Wed, 15 Jun 2011 22:23:18 +0200 Subject: [PATCH] First part to support copy from string table --- ILSpy/Controls/ResourceStringTable.xaml | 5 +++++ ILSpy/Controls/ResourceStringTable.xaml.cs | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/ILSpy/Controls/ResourceStringTable.xaml b/ILSpy/Controls/ResourceStringTable.xaml index 47663dc68..925b0367c 100644 --- a/ILSpy/Controls/ResourceStringTable.xaml +++ b/ILSpy/Controls/ResourceStringTable.xaml @@ -1,6 +1,11 @@  + + + diff --git a/ILSpy/Controls/ResourceStringTable.xaml.cs b/ILSpy/Controls/ResourceStringTable.xaml.cs index 3c7aa04ff..347667228 100644 --- a/ILSpy/Controls/ResourceStringTable.xaml.cs +++ b/ILSpy/Controls/ResourceStringTable.xaml.cs @@ -32,5 +32,18 @@ namespace ICSharpCode.ILSpy.Controls 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; + } } } \ No newline at end of file