This commit is contained in:
@@ -188,6 +188,13 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
#endregion
|
||||
#region Events
|
||||
|
||||
public event StepTabRibbonEvent PrintRequest;
|
||||
private void OnPrintRequest(StepTabRibbonEventArgs args)
|
||||
{
|
||||
if (PrintRequest != null)
|
||||
PrintRequest(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.
|
||||
@@ -1230,7 +1237,28 @@ namespace Volian.Controls.Library
|
||||
MyStepItem = MyStepItem.PasteReplace(tmp.MyDisplayTabControl.MyCopyStep.ItemID);
|
||||
if (MyStepItem.MyItemInfo.ItemID != oldStepItem.MyItemInfo.ItemID) oldStepItem.Dispose();
|
||||
}
|
||||
|
||||
private void btnPdfCreate_Click(object sender, EventArgs e)
|
||||
{
|
||||
OnPrintRequest(new StepTabRibbonEventArgs(MyItemInfo.MyProcedure));
|
||||
}
|
||||
}
|
||||
public enum E_FieldToEdit { StepText, Text, Number };
|
||||
public enum E_FieldToEdit { StepText, Text, Number };
|
||||
public class StepTabRibbonEventArgs : EventArgs
|
||||
{
|
||||
public StepTabRibbonEventArgs() { ; }
|
||||
public StepTabRibbonEventArgs(ItemInfo proc)
|
||||
{
|
||||
_Proc = proc;
|
||||
}
|
||||
private ItemInfo _Proc;
|
||||
|
||||
public ItemInfo Proc
|
||||
{
|
||||
get { return _Proc; }
|
||||
set { _Proc = value; }
|
||||
}
|
||||
}
|
||||
public delegate void StepTabRibbonEvent(object sender, StepTabRibbonEventArgs args);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user