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 b4793111..46d11978 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 @@ -259,7 +259,16 @@ namespace UniversalEditor.UserInterface.WindowsForms.Dialogs ProjectTemplate pt = (lvProjectTemplates.SelectedItems[0].Data as ProjectTemplate); if (pt == null) return; - if (!txtProjectTitle_IsChanged) txtProjectTitle.Text = pt.ProjectNamePrefix + "1"; + if (!txtProjectTitle_IsChanged) + { + string projectNamePrefix = pt.ProjectNamePrefix; + if (String.IsNullOrEmpty(projectNamePrefix)) + { + projectNamePrefix = pt.Title.Replace(" ", String.Empty); + // projectNamePrefix = "Project"; + } + txtProjectTitle.Text = projectNamePrefix + "1"; + } } private bool txtProjectTitle_IsChanged = false;