Skip to content

Commit

Permalink
Refactor Code
Browse files Browse the repository at this point in the history
  • Loading branch information
Jones-HM committed Mar 7, 2023
1 parent 3a8e717 commit f805896
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 44 deletions.
54 changes: 23 additions & 31 deletions IGIEditor/IGIEditorUI.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 3 additions & 13 deletions IGIEditor/IGIEditorUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1135,18 +1135,6 @@ private void LoadLevelDetails(int level)
}
}

private void closeBtn_Click(object sender, EventArgs e)
{
#if DEV_MODE
Environment.Exit(0);
#endif
var dlgResult = QUtils.ShowDialog("Do you want to exit the Editor ?", "IGI 1 Editor");
if (dlgResult == DialogResult.Yes)
{
Environment.Exit(0);
}
}

private void addWeaponBtn_Click(object sender, EventArgs e)
{
string weaponName = null, weaponModel = null, weaponStatus = null;
Expand Down Expand Up @@ -4677,7 +4665,7 @@ private void loadTextureBtn_Click(object sender, EventArgs e)
// Clear the PictureBox
textureBox.Image = null;

// Select TEX file using file dialog
// Select Texture file using file dialog
OpenFileDialog openFileDialog = new OpenFileDialog();
openFileDialog.Filter = "Texture files (*.tex, *.spr, *.pic)|*.tex;*.spr;*.pic|All files (*.*)|*.*";
if (openFileDialog.ShowDialog() == DialogResult.OK)
Expand Down Expand Up @@ -4926,6 +4914,8 @@ private void clearTempToolStripMenuItem_Click(object sender, EventArgs e)
QUtils.LogException(MethodBase.GetCurrentMethod().Name, ex);
}
}

SetStatusText("Temp data cleared success.");
}

private void graphsMarkCb_CheckedChanged(object sender, EventArgs e)
Expand Down

0 comments on commit f805896

Please sign in to comment.