public void CloseProject() { if (Project != null) { SaveProject(); SelectedItem = null; TabSelectedItem = null; TabTreeItems.Clear(); Project.Cleanup(); Project = null; ProjectHelper.CloseProject(); HasProject = false; } }