This commit is contained in:
2010-10-08 13:01:55 +00:00
parent 9dfb689f96
commit 2fb34aa6e6
3 changed files with 44 additions and 10 deletions

View File

@@ -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);
}