private void undoToolStripMenuItem_Click(object sender, EventArgs e) { EditorTabPage etb = GetActiveTab(); if (etb != null) { etb.Undo(); } }
private void undoToolStripMenuItem_Click(object sender, EventArgs e) { TabPage tb = tabControl1.SelectedTab; if (tb as EditorTabPage == null) { return; } EditorTabPage etb = tb as EditorTabPage; etb.Undo(); }