ARCed.Editor.LoadProject C# (CSharp) Method

LoadProject() private method

Loads the project file at the given path.
private LoadProject ( string path ) : void
path string Full path to the project file
return void
        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);
            //}
        }