Пример #1
0
          void and_FormClosed(object sender, FormClosedEventArgs e)
        {
 	          and=null;
        }
Пример #2
0
        private void addNewDepartmentToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (and == null)
            {
                and = new AddNewDepartment();
                and.MdiParent = this;
                and.FormClosed +=and_FormClosed;
                  and.Show();
                
            }
            else
            {
                and.Activate();
            }

        }