Properly display either 'New File' or 'New Project' based on the dialog mode

This commit is contained in:
Michael Becker 2019-08-04 11:09:46 -04:00
parent 0bbf8ac806
commit c34b1e5bf9

View File

@ -158,6 +158,20 @@ namespace UniversalEditor.UserInterface.Dialogs
{
base.OnCreating(e);
switch (Mode)
{
case NewDialogMode.File:
{
this.Text = "New File";
break;
}
case NewDialogMode.Project:
{
this.Text = "New Project";
break;
}
}
tvTemplate.RowActivated += tvTemplate_RowActivated;
InitializeTreeView();