Browse Source

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

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

2
ILSpy/CreateListDialog.xaml

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

2
ILSpy/OpenListDialog.xaml

@ -19,7 +19,7 @@ @@ -19,7 +19,7 @@
<Label>Select a list:</Label>
</StackPanel>
<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>
<GridView>
<controls:SortableGridViewColumn x:Name="nameColumn" Header="Name" DisplayMemberBinding="{Binding .}" />

7
ILSpy/OpenListDialog.xaml.cs

@ -19,6 +19,7 @@ @@ -19,6 +19,7 @@
using System.Windows;
using System.Windows.Controls;
using Mono.Cecil;
using System.Windows.Input;
namespace ICSharpCode.ILSpy
{
@ -180,5 +181,11 @@ namespace ICSharpCode.ILSpy @@ -180,5 +181,11 @@ namespace ICSharpCode.ILSpy
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