Implemented CloseProject()

This commit is contained in:
Michael Becker 2014-12-25 20:44:22 -05:00
parent 9c252cb0ab
commit e35defe31c
3 changed files with 6 additions and 1 deletions

View File

@ -1655,7 +1655,7 @@ namespace UniversalEditor.UserInterface.WindowsForms
CloseWindow();
}
}
private void FileCloseProject_Click(object sender, EventArgs e)
public void CloseProject()
{
CurrentSolution = null;
}

View File

@ -124,6 +124,10 @@ namespace UniversalEditor.UserInterface
{
LastWindow.CloseFile();
});
AttachCommandEventHandler("FileCloseProject", delegate(object sender, EventArgs e)
{
LastWindow.CloseProject();
});
AttachCommandEventHandler("FileRestart", delegate(object sender, EventArgs e)
{
RestartApplication();

View File

@ -35,6 +35,7 @@ namespace UniversalEditor.UserInterface
void SwitchPerspective(int index);
void CloseFile();
void CloseProject();
void CloseWindow();
IEditorImplementation GetCurrentEditor();