//Screen switchers. private void partAddButton_Click(object sender, EventArgs e) { this.Hide(); AddModifyPartScreen addModifyPartScreen = new AddModifyPartScreen(); ProdIndx = null; PartIndx = null; addModifyPartScreen.Show(); }
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."); } }