Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 19 additions & 31 deletions Src/Utilities/AlloVarGen/AllomorphGeneratorDll/AlloGenFormBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unintentional whitespace change

return;
}
#if Marks
Provider.LoadDataFromFile(OperationsFile);
Expand Down
Loading