This commit is contained in:
parent
96160bec38
commit
e2f94d92b9
@ -79,6 +79,7 @@ namespace Volian.Controls.Library
|
|||||||
#endregion
|
#endregion
|
||||||
//private frmPG _frm = null;
|
//private frmPG _frm = null;
|
||||||
#region Constructors
|
#region Constructors
|
||||||
|
private Timer _RefreshTimer;
|
||||||
public DSOTabPanel(DocumentInfo documentInfo, DisplayTabControl myDisplayTabControl)
|
public DSOTabPanel(DocumentInfo documentInfo, DisplayTabControl myDisplayTabControl)
|
||||||
{
|
{
|
||||||
_MyDisplayTabControl = myDisplayTabControl;
|
_MyDisplayTabControl = myDisplayTabControl;
|
||||||
@ -86,9 +87,24 @@ namespace Volian.Controls.Library
|
|||||||
SetupDSOTabPanel();
|
SetupDSOTabPanel();
|
||||||
_MyDocumentInfo = documentInfo;
|
_MyDocumentInfo = documentInfo;
|
||||||
SetupDSO();
|
SetupDSO();
|
||||||
|
_RefreshTimer = new Timer(); // Enabled is false and interval is 1/10th of second.
|
||||||
|
ClientSizeChanged += new EventHandler(DSOTabPanel_ClientSizeChanged);
|
||||||
|
_RefreshTimer.Tick += new EventHandler(_RefreshTimer_Tick);
|
||||||
//_frm = new frmPG(_MyDSOFramer);
|
//_frm = new frmPG(_MyDSOFramer);
|
||||||
//_frm.Show();
|
//_frm.Show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void _RefreshTimer_Tick(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
_RefreshTimer.Enabled = false;
|
||||||
|
_MyDSOFramer.Focus();
|
||||||
|
}
|
||||||
|
|
||||||
|
void DSOTabPanel_ClientSizeChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
_RefreshTimer.Enabled = false; // This assures that interval is used from last event.
|
||||||
|
_RefreshTimer.Enabled = true;
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
#region Private Methods
|
#region Private Methods
|
||||||
private void SetupDSOTabPanel()
|
private void SetupDSOTabPanel()
|
||||||
|
@ -44,7 +44,7 @@ namespace Volian.Controls.Library
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
private ItemInfo MyItemInfo
|
private ItemInfo MyItemInfo
|
||||||
{ get { return _MyStepRTB.MyItemInfo; } }
|
{ get { return _MyStepRTB==null?null:_MyStepRTB.MyItemInfo; } }
|
||||||
|
|
||||||
private DevComponents.DotNetBar.ButtonItem _DefaultContextMenu;
|
private DevComponents.DotNetBar.ButtonItem _DefaultContextMenu;
|
||||||
|
|
||||||
@ -1254,6 +1254,7 @@ namespace Volian.Controls.Library
|
|||||||
|
|
||||||
private void btnPdfCreate_Click(object sender, EventArgs e)
|
private void btnPdfCreate_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
if (MyItemInfo == null) return; // if creating a pdf before rtb exists, return;
|
||||||
OnPrintRequest(new StepTabRibbonEventArgs(MyItemInfo.MyProcedure));
|
OnPrintRequest(new StepTabRibbonEventArgs(MyItemInfo.MyProcedure));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user