This commit is contained in:
2008-03-25 12:20:46 +00:00
parent 29de7340ae
commit 8114a11a29
3 changed files with 120 additions and 110 deletions

View File

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