Add a check for clearing the Gameshark Tool's text boxes. And actually clear both.

This commit is contained in:
hegyak 2016-10-10 11:13:01 -07:00
parent 9714aa5cc9
commit f1ddafa6de
1 changed files with 10 additions and 6 deletions

View File

@ -154,8 +154,8 @@ namespace BizHawk.Client.EmuHawk
public void Restart()
{
}
}
public void NewUpdate(ToolFormUpdateType type) { }
public void UpdateValues()
@ -3206,10 +3206,14 @@ namespace BizHawk.Client.EmuHawk
}
}
private void btnClear_Click(object sender, EventArgs e)
{
//Clear old Inputs
txtDescription.Clear();
{
//Clear old Inputs
DialogResult result = MessageBox.Show("Are you sure you want to clear this form?", "Clear Form", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (result == DialogResult.Yes)
{
txtDescription.Clear();
txtCheat.Clear();
}
}
private void GameShark_Load(object sender, EventArgs e)