fix(ui): (papercut): minor improvements in differentiating between new document / project dialog

This commit is contained in:
Michael Becker 2022-01-27 23:55:18 -05:00
parent 49a237ab94
commit 3a299cabf8
No known key found for this signature in database
GPG Key ID: 98C333A81F18C22C

View File

@ -67,6 +67,24 @@ namespace UniversalEditor.UserInterface.Dialogs
Buttons[0].Enabled = false;
DefaultButton = Buttons[0];
if (SolutionTitle == null)
{
// we have no existing solution, so default to creating one
chkAddToSolution.Enabled = false;
chkAddToSolution.Checked = true;
}
if (Mode == NewDialogMode.Project)
{
chkAddToSolution.Text = "_Add to solution";
lblSolutionName.Text = "Solu_tion name";
}
else
{
chkAddToSolution.Text = "_Add to project";
lblSolutionName.Text = "Projec_t name";
}
}
private void InitializeDocumentTemplateTreeView()
{