Added event code to the tab for a procedure, so that the tab is updated if the number or title of a procedure is changed.
This commit is contained in:
parent
0945b75d11
commit
eb92e89186
@ -164,6 +164,7 @@ namespace Volian.Controls.Library
|
||||
Control = _MyStepTabPanel;
|
||||
Name = "tabItem Item " + _MyItemInfo.ItemID;
|
||||
Text = _MyItemInfo.TabTitle;
|
||||
_MyItemInfo.Changed += new ItemInfoEvent(_MyItemInfo_Changed);
|
||||
Tooltip = _Tooltip = _MyItemInfo.TabToolTip.Replace("\u2011", "-");
|
||||
MouseMove += new System.Windows.Forms.MouseEventHandler(DisplayTabItem_MouseMove);
|
||||
LostFocus += new EventHandler(DisplayTabItem_LostFocus);
|
||||
@ -188,6 +189,11 @@ namespace Volian.Controls.Library
|
||||
this.MyStepTabPanel.MyStepTabRibbon.btnPdfCreate.Enabled = true;
|
||||
//end added by jcb 20130718
|
||||
}
|
||||
void _MyItemInfo_Changed(object sender)
|
||||
{
|
||||
Text = _MyItemInfo.TabTitle;
|
||||
Tooltip = _Tooltip = _MyItemInfo.TabToolTip.Replace("\u2011", "-");
|
||||
}
|
||||
void DisplayTabItem_LostFocus(object sender, EventArgs e)
|
||||
{
|
||||
if(Tooltip != _Tooltip)
|
||||
|
Loading…
x
Reference in New Issue
Block a user