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