diff --git a/CSharp/Environments/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/Dialogs/NewDialog.Designer.cs b/CSharp/Environments/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/Dialogs/NewDialog.Designer.cs index c73e4329..c454453a 100644 --- a/CSharp/Environments/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/Dialogs/NewDialog.Designer.cs +++ b/CSharp/Environments/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/Dialogs/NewDialog.Designer.cs @@ -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 diff --git a/CSharp/Environments/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/Dialogs/NewDialog.cs b/CSharp/Environments/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/Dialogs/NewDialog.cs index 6bfd8fb7..b4793111 100644 --- a/CSharp/Environments/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/Dialogs/NewDialog.cs +++ b/CSharp/Environments/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/Dialogs/NewDialog.cs @@ -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 {