Beispiel #1
0
        private void productAddButton_Click(object sender, EventArgs e)
        {
            this.Hide();
            AddModifyProductScreen addModifyProductScreen = new AddModifyProductScreen();

            ProdIndx = null;
            PartIndx = null;
            addModifyProductScreen.Show();
        }
Beispiel #2
0
 private void productModifyButton_Click(object sender, EventArgs e)
 {
     if (ProdIndx != null)
     {
         this.Hide();
         AddModifyProductScreen addModifyProductScreen = new AddModifyProductScreen(Inventory.Products[(int)ProdIndx]);
         ProdIndx = null;
         PartIndx = null;
         addModifyProductScreen.Show();
     }
     else
     {
         MessageBox.Show("Please select Product to Modify.");
     }
 }