Display a MessageBox if in debug mode ItemInfo (frmPropGrid) is opened without selecting an Item

Added Interface properties SearchDVPath and SearchPath
This commit is contained in:
Rich
2011-05-09 14:09:20 +00:00
parent 4b967f6d4b
commit 7e6fefb00c
6 changed files with 113 additions and 5 deletions

View File

@@ -983,7 +983,6 @@ namespace VEPROMS
{
toolsPanel.Expanded = true;
toolsTabs.SelectedTab = tabItemLibDocs;
toolsTabs.SelectedTab.PerformClick();
}
else if (args.PanelTabName == "Annots")
{
@@ -1405,8 +1404,13 @@ namespace VEPROMS
private void btnItemInfo_Click(object sender, EventArgs e)
{
frmPropGrid pg = new frmPropGrid(tc.SelectedDisplayTabItem.SelectedItemInfo, tc.SelectedDisplayTabItem.SelectedItemInfo.Path);
pg.Show();
if (tc.SelectedDisplayTabItem != null && tc.SelectedDisplayTabItem.SelectedItemInfo != null)
{
frmPropGrid pg = new frmPropGrid(tc.SelectedDisplayTabItem.SelectedItemInfo, tc.SelectedDisplayTabItem.SelectedItemInfo.Path);
pg.Show();
}
else
MessageBox.Show("Select Item First", "Item not selected", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
private void epAnnotations_Resize(object sender, EventArgs e)