Default save project file to solution title, do not create new solution object model for creating reference

This commit is contained in:
Michael Becker 2014-06-10 12:44:28 -04:00
parent 2c3006def4
commit 653e47fd94

View File

@ -954,9 +954,14 @@ namespace UniversalEditor.UserInterface.WindowsForms
}
public void SaveProjectAs()
{
SolutionObjectModel solution = new SolutionObjectModel();
if (mvarCurrentSolution == null)
{
return;
}
SaveFileDialog sfd = new SaveFileDialog();
sfd.Filter = UniversalEditor.Common.Dialog.GetCommonDialogFilter(solution.MakeReference());
sfd.Filter = UniversalEditor.Common.Dialog.GetCommonDialogFilter(mvarCurrentSolution.MakeReference());
sfd.FileName = mvarCurrentSolution.Title + ".sln";
if (sfd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
SaveProjectAs(sfd.FileName);