This commit is contained in:
parent
a216184be8
commit
8764f057c9
@ -156,6 +156,12 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
if (ItemSelectedChanged != null) ItemSelectedChanged(sender, args);
|
||||
}
|
||||
public event StepPanelModeChangeEvent ModeChange;
|
||||
internal void OnModeChange(object sender, StepRTBModeChangeEventArgs args)
|
||||
{
|
||||
if (ModeChange != null) ModeChange(sender, args);
|
||||
else MessageBox.Show("Cannot change mode");
|
||||
}
|
||||
#endregion
|
||||
#region Contructor & Setup
|
||||
public DisplayTabControl()
|
||||
@ -383,6 +389,25 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
return myBar;
|
||||
}
|
||||
public StepTabPanel GetProcedureTabPanel(ItemInfo myItemInfo)
|
||||
{
|
||||
Bar myBar = null;
|
||||
foreach (Bar b in dotNetBarManager1.Bars)
|
||||
{
|
||||
if (b.DockSide == eDockSide.Document && b.Visible)
|
||||
{
|
||||
if (myBar == null) myBar = b;// Remember the first available bar if a specific bar cannot be found
|
||||
foreach (object itm in b.Items)
|
||||
{
|
||||
DisplayTabItem myTabItem = itm as DisplayTabItem;
|
||||
if (myTabItem != null && myTabItem.MyStepTabPanel != null && myTabItem.MyStepTabPanel.MyProcedureItemInfo != null)
|
||||
if (myTabItem.MyStepTabPanel.MyProcedureItemInfo.ItemID == myItemInfo.MyProcedure.ItemID)
|
||||
return myTabItem.MyStepTabPanel;
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
/// <summary>
|
||||
/// This opens a Step page based upon a ItemInfo.
|
||||
///
|
||||
|
Loading…
x
Reference in New Issue
Block a user