Added a Continuous Action Summary ribbon button

This commit is contained in:
John Jenko 2015-10-23 18:15:29 +00:00
parent c9ab2fc2d5
commit 7adcafa29b
2 changed files with 13 additions and 0 deletions

View File

@ -781,6 +781,12 @@ namespace Volian.Controls.Library
if (PrintRequest != null)
PrintRequest(this, args);
}
public event StepTabRibbonEvent ContActionSummaryRequest;
private void OnContActionSummaryRequest(StepTabRibbonEventArgs args)
{
if (ContActionSummaryRequest != null)
ContActionSummaryRequest(this, args);
}
void _MyStepRTB_LinkChanged(object sender, StepPanelLinkEventArgs args)
{
// do all Transition and ReferencedObject menu items/buttons based on whether a 'link is selected' and the link type.
@ -2737,6 +2743,13 @@ namespace Volian.Controls.Library
if (MyEditItem != null) MyEditItem.SaveCurrentAndContents();
OnPrintRequest(new StepTabRibbonEventArgs(MyItemInfo.MyProcedure));
}
private void btnCASCreate_Click(object sender, EventArgs e)
{
if (MyItemInfo == null) return; // if creating a Continuous Action Summary before rtb exists, return;
if (MyEditItem != null) MyEditItem.SaveCurrentAndContents();
OnContActionSummaryRequest(new StepTabRibbonEventArgs(MyItemInfo.MyProcedure));
}
#region Table Grid
#region TablePicker code
// TODO: for tables