示例#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();
            }

        }