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);
}
}
}
}