private void addpline_btn_Click(object sender, EventArgs e)
        {
            ProductLine_Maintenance PLM = new ProductLine_Maintenance();

            PLM.MdiParent = this.ParentForm;
            PLM.Show();
        }
示例#2
0
 private void productLineToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (this.MdiChildren.Length < 1)
     {
         try
         {
             ProductLine_Maintenance PLM = new ProductLine_Maintenance();
             PLM.MdiParent = this;
             PLM.Show();
         }
         catch (Exception ex)
         {
             MessageBox.Show("Error:" + ex);
         }
     }
     else
     {
         ModuleWarning MW = new ModuleWarning();
         MW.Show();
     }
 }