This commit is contained in:
@@ -11,8 +11,8 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
public partial class DisplayTabRibbon : UserControl
|
||||
{
|
||||
private DisplayItem _MyDisplayItem;
|
||||
public DisplayItem MyDisplayItem
|
||||
private StepItem _MyDisplayItem;
|
||||
public StepItem MyDisplayItem
|
||||
{
|
||||
get { return _MyDisplayItem; }
|
||||
set
|
||||
@@ -24,8 +24,8 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
}
|
||||
}
|
||||
private DisplayRTB _MyDisplayRTB;
|
||||
public DisplayRTB MyDisplayRTB
|
||||
private StepRTB _MyDisplayRTB;
|
||||
public StepRTB MyDisplayRTB
|
||||
{
|
||||
get { return _MyDisplayRTB; }
|
||||
set
|
||||
@@ -163,7 +163,7 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
// see if user is positioned 'on' a transition within the rtb, if so do a modify, otherwise,
|
||||
// insert transition.
|
||||
DisplayTabPanel tmp = Parent as DisplayTabPanel;
|
||||
StepTabPanel tmp = Parent as StepTabPanel;
|
||||
tmp.MyTabControl.OnLinkModifyTran(this, new DisplayLinkEventArgs(_MyDisplayItem, null));
|
||||
}
|
||||
|
||||
@@ -176,8 +176,18 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
// see if user is positioned 'on' an RO within the rtb, if so do a modify, otherwise,
|
||||
// insert transition.
|
||||
DisplayTabPanel tmp = Parent as DisplayTabPanel;
|
||||
StepTabPanel tmp = Parent as StepTabPanel;
|
||||
tmp.MyTabControl.OnLinkModifyRO(this, new DisplayLinkEventArgs(_MyDisplayItem, null));
|
||||
}
|
||||
|
||||
private void btnRedo_Click(object sender, EventArgs e)
|
||||
{
|
||||
_MyDisplayRTB.Redo();
|
||||
}
|
||||
|
||||
private void btnUndo_Click(object sender, EventArgs e)
|
||||
{
|
||||
_MyDisplayRTB.Undo();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user