fixed a focus bug dealing with an accessory page

This commit is contained in:
2009-08-05 15:00:48 +00:00
parent a0c5a4d2aa
commit 739e820a80
3 changed files with 83 additions and 87 deletions

View File

@@ -910,17 +910,17 @@ namespace VEPROMS
infotabTags.Visible = true;
//vlnStackTrace.ShowStack("enter tc_ItemSelectedChanged {0}", _CurrentItem);
}
else if (args.MyStepItem.MyItemInfo.IsSection || args.MyStepItem.MyItemInfo.IsProcedure)
{
// if the current item is a section or procedure, user cannot
// insert a transition or ro:
infotabTransition.Visible = false;
infotabRO.Visible = false;
}
else
{
//vlnStackTrace.ShowStack("enter tc_ItemSelectedChanged {0}", _CurrentItem);
infotabRO.Visible = infotabTransition.Visible = infotabTags.Visible = true;
if (args.MyStepItem.MyItemInfo.IsSection || args.MyStepItem.MyItemInfo.IsProcedure)
{
infotabRO.Visible = infotabTransition.Visible = false;
infotabTags.Visible = true;
}
else
infotabRO.Visible = infotabTransition.Visible = infotabTags.Visible = true;
//vlnStackTrace.ShowStack("enter tc_ItemSelectedChanged {0}", _CurrentItem);
// When infotabTags is set to Visible, the matching panel also needs to be set to visible
// the other panels will appear as they are selected by the user.
infotabControlPanelTags.Visible = true;