Browse Source

Merge branch 'master' of github.com:icsharpcode/ILSpy

pull/259/merge
Ed Harvey 14 years ago
parent
commit
3d51b93e44
  1. 4
      ILSpy/CreateListDialog.xaml
  2. 2
      ILSpy/OpenListDialog.xaml
  3. 7
      ILSpy/OpenListDialog.xaml.cs

4
ILSpy/CreateListDialog.xaml

@ -5,8 +5,8 @@
WindowStartupLocation="CenterOwner" WindowStartupLocation="CenterOwner"
ResizeMode="NoResize" ResizeMode="NoResize"
Width="300" Width="300"
Height="150" Height="150"
FocusManager.FocusedElement="{Binding ElementName=listView}"> FocusManager.FocusedElement="{Binding ElementName=ListName}">
<Grid Margin="12,8"> <Grid Margin="12,8">
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="Auto" /> <RowDefinition Height="Auto" />

2
ILSpy/OpenListDialog.xaml

@ -19,7 +19,7 @@
<Label>Select a list:</Label> <Label>Select a list:</Label>
</StackPanel> </StackPanel>
<ListView Name="listView" Grid.Row="1" Margin="0, 8" controls:SortableGridViewColumn.SortMode="Automatic" SelectionChanged="ListView_SelectionChanged" <ListView Name="listView" Grid.Row="1" Margin="0, 8" controls:SortableGridViewColumn.SortMode="Automatic" SelectionChanged="ListView_SelectionChanged"
Loaded="listView_Loaded" SelectionMode="Single"> Loaded="listView_Loaded" SelectionMode="Single" MouseDoubleClick="listView_MouseDoubleClick">
<ListView.View> <ListView.View>
<GridView> <GridView>
<controls:SortableGridViewColumn x:Name="nameColumn" Header="Name" DisplayMemberBinding="{Binding .}" /> <controls:SortableGridViewColumn x:Name="nameColumn" Header="Name" DisplayMemberBinding="{Binding .}" />

7
ILSpy/OpenListDialog.xaml.cs

@ -19,6 +19,7 @@
using System.Windows; using System.Windows;
using System.Windows.Controls; using System.Windows.Controls;
using Mono.Cecil; using Mono.Cecil;
using System.Windows.Input;
namespace ICSharpCode.ILSpy namespace ICSharpCode.ILSpy
{ {
@ -180,5 +181,11 @@ namespace ICSharpCode.ILSpy
manager.DeleteList(listView.SelectedItem.ToString()); manager.DeleteList(listView.SelectedItem.ToString());
} }
private void listView_MouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e)
{
if (e.ChangedButton == MouseButton.Left && listView.SelectedItem != null)
this.DialogResult = true;
}
} }
} }

Loading…
Cancel
Save