Fix the EditItem button in debug mode so that it tells the user to select an item before pressing the button, consistent with the ItemInfo button.

This commit is contained in:
Rich committed 2015-03-03 10:34:41 +00:00
1 parent 53b5f7ae54
commit 7bafcc6fe9
1 file changed
+5
@@ -2775,10 +2775,15 @@ namespace VEPROMS
}
private void btnEditItem_Click(object sender, EventArgs e)
{
if (tc.SelectedDisplayTabItem != null && tc.SelectedDisplayTabItem.MyStepTabPanel.SelectedEditItem != null)
{
frmPropGrid pg = new frmPropGrid(tc.SelectedDisplayTabItem.MyStepTabPanel.SelectedEditItem, "EditItem");
pg.Show();
}
else
MessageBox.Show("Select Item First", "Item not selected", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
private void btnUpdateFormat_Click(object sender, EventArgs e)
{
UpdateFormats(null);