diff --git a/Src/Utilities/AlloVarGen/AllomorphGeneratorDll/AlloGenFormBase.cs b/Src/Utilities/AlloVarGen/AllomorphGeneratorDll/AlloGenFormBase.cs index 0a783407d2..045efa4b55 100644 --- a/Src/Utilities/AlloVarGen/AllomorphGeneratorDll/AlloGenFormBase.cs +++ b/Src/Utilities/AlloVarGen/AllomorphGeneratorDll/AlloGenFormBase.cs @@ -862,44 +862,32 @@ protected void LoadMigrateGetOperations() { if (!File.Exists(OperationsFile)) { - if (String.IsNullOrEmpty(OperationsFile)) + // probably first time it is run + var dlg = BuildCreateNewOpenCancelDialog(); + var result = dlg.ShowDialog(); + if (result == DialogResult.OK) { - // probably first time it is run - var dlg = BuildCreateNewOpenCancelDialog(); - var result = dlg.ShowDialog(); - if (result == DialogResult.OK) + // create new operations file + ChangesMade = false; + SetupFontAndStyleInfo(); + btnNewFile_Click(this, new EventArgs()); + if (!String.IsNullOrEmpty(OperationsFile)) { - // create new operations file - ChangesMade = false; - SetupFontAndStyleInfo(); - btnNewFile_Click(this, new EventArgs()); - if (!String.IsNullOrEmpty(OperationsFile)) - { - // Need to save it since it exists - DoSave(); - } - } - else if (result == DialogResult.Yes) - { - // Open existing operations file - btnBrowse_Click(this, new EventArgs()); - } - else - { - // Assume it was canceled, so quit - this.Dispose(); + // Need to save it since it exists + DoSave(); } } + else if (result == DialogResult.Yes) + { + // Open existing operations file + btnBrowse_Click(this, new EventArgs()); + } else { - MessageBox.Show( - AllomorphGeneratorDll_Strings.ksOperationsFileNotFound, - AllomorphGeneratorDll_Strings.ksLoadError, - MessageBoxButtons.OK, - MessageBoxIcon.Error - ); + // Assume it was canceled, so quit + this.Dispose(); } - return; + return; } #if Marks Provider.LoadDataFromFile(OperationsFile);