private void mnuDelete_Click(object sender, EventArgs e) { try { Blank form = (Blank)this.ActiveMdiChild; form.Delete(); } catch (NullReferenceException) { MessageBox.Show("Действие Delete невозможна", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Hand); } }
private void cmnuDelete_Click(object sender, EventArgs e) { Blank form = (Blank)this.ActiveMdiChild; form.Delete(); }