ARCed.Editor.FileMenuOpenProjectClick C# (CSharp) Method

FileMenuOpenProjectClick() private method

Menu: File -> Open Project...
private FileMenuOpenProjectClick ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void FileMenuOpenProjectClick(object sender, EventArgs e)
        {
            if (this.ConfirmProjectClose())
            {
                using (var loadDialog = new OpenFileDialog())
                {
                    loadDialog.DefaultExt = "";
                    loadDialog.Filter = @"ARC Project File|*.arcproj|All Documents|*.*";
                    loadDialog.InitialDirectory = PathHelper.DefaultSaveDirectory;
                    loadDialog.Title = "Open ARC Project...";
                    if (loadDialog.ShowDialog() == DialogResult.OK)
                    {
                        if (Project.IsLoaded && !this.ConfirmProjectClose())
                            return;
                        this.CloseProject();
                        this.LoadProject(loadDialog.FileName);
                    }
                }
            }
        }