예제 #1
0
 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);
     }
 }
예제 #2
0
        private void cmnuDelete_Click(object sender, EventArgs e)
        {
            Blank form = (Blank)this.ActiveMdiChild;

            form.Delete();
        }