private void btPartAdd_Click(object sender, EventArgs e) { ModifyPartForm addPartForm = new ModifyPartForm(this); this.Hide(); addPartForm.Show(); resetIndex(); }
private void btPartModify_Click(object sender, EventArgs e) { if (IndexPart >= 0) { ModifyPartForm modifyPartForm = new ModifyPartForm(this, partChosen); resetIndex(); this.Hide(); modifyPartForm.Show(); } else { MessageBox.Show("You must make a selection."); } }