Activating an item in the list (double-click usually) should accept the dialog
This commit is contained in:
parent
a0aa58c1a3
commit
9da0053b1c
@ -132,6 +132,7 @@ namespace UniversalEditor.UserInterface.WindowsForms.Dialogs
|
||||
this.lvFileTemplates.SmallImageList = null;
|
||||
this.lvFileTemplates.SortColumn = null;
|
||||
this.lvFileTemplates.TabIndex = 0;
|
||||
this.lvFileTemplates.ItemActivate += new System.EventHandler(this.lvTemplates_ItemActivate);
|
||||
this.lvFileTemplates.SelectionChanged += new System.EventHandler(this.lvFileTemplates_SelectionChanged);
|
||||
//
|
||||
// cmdCancel
|
||||
@ -223,6 +224,7 @@ namespace UniversalEditor.UserInterface.WindowsForms.Dialogs
|
||||
this.lvProjectTemplates.SmallImageList = null;
|
||||
this.lvProjectTemplates.SortColumn = null;
|
||||
this.lvProjectTemplates.TabIndex = 0;
|
||||
this.lvProjectTemplates.ItemActivate += new System.EventHandler(this.lvTemplates_ItemActivate);
|
||||
this.lvProjectTemplates.SelectionChanged += new System.EventHandler(this.lvProjectTemplates_SelectionChanged);
|
||||
//
|
||||
// optSeparate
|
||||
|
||||
@ -278,6 +278,11 @@ namespace UniversalEditor.UserInterface.WindowsForms.Dialogs
|
||||
{
|
||||
if (!txtSolutionTitle_IsChanged) txtSolutionTitle.Text = txtProjectTitle.Text;
|
||||
}
|
||||
|
||||
private void lvTemplates_ItemActivate(object sender, EventArgs e)
|
||||
{
|
||||
cmdOK_Click(sender, e);
|
||||
}
|
||||
}
|
||||
public enum NewDialogMode
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user