private void menuEditUndo_Click(object sender, System.EventArgs ea)
{
if (this.ctlEditTextbox != null && ctlEditTextbox.Focused)
{
ctlEditTextbox.Undo();
return;
}
RdlEditPreview e = GetEditor();
if (e == null)
return;
if (e.CanUndo == true)
{
e.Undo();
MDIChild mc = this.ActiveMdiChild as MDIChild;
if (mc != null && mc.DesignTab == DesignTabs.Design)
{
e.DesignCtl.SetScrollControls();
}
this.SelectionChanged(this, new EventArgs());
}
}