コード例 #1
0
        private void addsupp_btn_Click(object sender, EventArgs e)
        {
            SupplierMaintenance sm = new SupplierMaintenance();

            sm.MdiParent = this.ParentForm;
            sm.Show();
        }
コード例 #2
0
 private void supplierToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (this.MdiChildren.Length < 1)
     {
         try
         {
             SupplierMaintenance SM = new SupplierMaintenance();
             SM.MdiParent = this;
             SM.Show();
         }
         catch (Exception ex)
         {
             MessageBox.Show("Error:" + ex);
         }
     }
     else
     {
         ModuleWarning MW = new ModuleWarning();
         MW.Show();
     }
 }