Ejemplo n.º 1
0
        //Screen switchers.
        private void partAddButton_Click(object sender, EventArgs e)
        {
            this.Hide();
            AddModifyPartScreen addModifyPartScreen = new AddModifyPartScreen();

            ProdIndx = null;
            PartIndx = null;
            addModifyPartScreen.Show();
        }
Ejemplo n.º 2
0
 private void partModifyButton_Click(object sender, EventArgs e)
 {
     if (PartIndx != null)
     {
         this.Hide();
         AddModifyPartScreen addModifyPartScreen = new AddModifyPartScreen((int)PartIndx);
         PartIndx = null;
         ProdIndx = null;
         addModifyPartScreen.Show();
     }
     else
     {
         MessageBox.Show("Please select Part to Modify.");
     }
 }