private void LoadProject(string path)
{
Console.WriteLine(path);
if (Project.IsLoaded)
Project.Close();
Project.NeedSaved = false;
Cursor = Cursors.WaitCursor;
Project.Load(path);
Cursor = Cursors.Default;
//try
//{
if (File.Exists(Project.LayoutSettings))
this.dockMain.LoadFromXml(Project.LayoutSettings, this._deserializeDockContent);
Windows.ScriptMenu.ScriptsDirectory = Project.ScriptsDirectory;
Windows.ARChiveForm.RefreshSettings();
Text = Project.Title;
Settings.AddToRecent(path);
//}
//catch
//{
//CloseProject();
//MessageBox.Show("Error loading project.",
//"Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
//}
}