private void addunit_btn_Click(object sender, EventArgs e)
        {
            UnitDescription_Maintenance UDM = new UnitDescription_Maintenance();

            UDM.MdiParent = this.ParentForm;
            UDM.Show();
        }
Пример #2
0
 private void unitToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (this.MdiChildren.Length < 1)
     {
         try
         {
             UnitDescription_Maintenance UDM = new UnitDescription_Maintenance();
             UDM.MdiParent = this;
             UDM.Show();
         }
         catch (Exception ex)
         {
             MessageBox.Show("Error:" + ex);
         }
     }
     else
     {
         ModuleWarning MW = new ModuleWarning();
         MW.Show();
     }
 }