private void newBTN_Click(object sender, EventArgs e) { beingEdited = new Blade("New Blade", 1, 1, false, true); editForm = new EditBladeForm(beingEdited, true); editForm.Show(); this.Enabled = false; editForm.FormClosing += EditForm_FormClosing; }
private void editBTN_Click(object sender, EventArgs e) { beingEdited = usedList.SelectedObject != null ? (Blade)usedList.SelectedObject : (Blade)availableList.SelectedObject; editForm = new EditBladeForm(beingEdited, false); editForm.Show(); this.Enabled = false; editForm.FormClosing += EditForm_FormClosing; }