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


            /*AdminMenu.MdiParent = me
             * AdminMenu.formporderstyle = Windows.Forms.FormBorderStyle.None;
             * AdminMenu.ControlBox = false;
             * AdminMenu.MaximizeBox = false;
             * AdminMenu.MinimizeBox = false;
             * AdminMenu.text = "";
             * AdminMenu.dock = DockStyle.Fill;*/
        }
Пример #2
0
 private void priceListToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (this.MdiChildren.Length < 1)
     {
         try
         {
             Price_Inquiry PSI = new Price_Inquiry();
             PSI.MdiParent = this;
             PSI.Show();
         }
         catch (Exception ex)
         {
             MessageBox.Show("Error:" + ex);
         }
     }
     else
     {
         ModuleWarning MW = new ModuleWarning();
         MW.Show();
     }
 }
Пример #3
0
 private void userMaintenanceToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (this.MdiChildren.Length < 1)
     {
         try
         {
             User_Maintenance UM = new User_Maintenance();
             UM.MdiParent = this;
             UM.Show();
         }
         catch (Exception ex)
         {
             MessageBox.Show("Error:" + ex);
         }
     }
     else
     {
         ModuleWarning MW = new ModuleWarning();
         MW.Show();
     }
 }
Пример #4
0
 private void logHistoryToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (this.MdiChildren.Length < 1)
     {
         try
         {
             Log_History LH = new Log_History();
             LH.MdiParent = this;
             LH.Show();
         }
         catch (Exception ex)
         {
             MessageBox.Show("Error:" + ex);
         }
     }
     else
     {
         ModuleWarning MW = new ModuleWarning();
         MW.Show();
     }
 }
Пример #5
0
 private void stockOutToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (this.MdiChildren.Length < 1)
     {
         try
         {
             Stock_Out SO = new Stock_Out();
             SO.MdiParent = this;
             SO.Show();
         }
         catch (Exception ex)
         {
             MessageBox.Show("Error:" + ex);
         }
     }
     else
     {
         ModuleWarning MW = new ModuleWarning();
         MW.Show();
     }
 }
Пример #6
0
 private void productsInCriticalLevelToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (this.MdiChildren.Length < 1)
     {
         try
         {
             Critical_Level_of_Products CLP = new Critical_Level_of_Products();
             CLP.MdiParent = this;
             CLP.Show();
         }
         catch (Exception ex)
         {
             MessageBox.Show("Error:" + ex);
         }
     }
     else
     {
         ModuleWarning MW = new ModuleWarning();
         MW.Show();
     }
 }
Пример #7
0
 private void casheringToolStripMenuItem_Click_1(object sender, EventArgs e)
 {
     if (this.MdiChildren.Length < 1)
     {
         try
         {
             Cashiering Csh = new Cashiering();
             Csh.MdiParent = this;
             Csh.Show();
         }
         catch (Exception ex)
         {
             MessageBox.Show("Error:" + ex);
         }
     }
     else
     {
         ModuleWarning MW = new ModuleWarning();
         MW.Show();
     }
 }
Пример #8
0
 private void backOrderToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (this.MdiChildren.Length < 1)
     {
         try
         {
             ReceiveBackOrder RBO = new ReceiveBackOrder();
             RBO.MdiParent = this;
             RBO.Show();
         }
         catch (Exception ex)
         {
             MessageBox.Show("Error:" + ex);
         }
     }
     else
     {
         ModuleWarning MW = new ModuleWarning();
         MW.Show();
     }
 }
Пример #9
0
 private void purchaseOrderToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (this.MdiChildren.Length < 1)
     {
         try
         {
             PurchaseOrder PO = new PurchaseOrder();
             PO.MdiParent = this;
             PO.Show();
         }
         catch (Exception ex)
         {
             MessageBox.Show("Error:" + ex);
         }
     }
     else
     {
         ModuleWarning MW = new ModuleWarning();
         MW.Show();
     }
 }