private void editToolStripMenuItem_Click(object sender, EventArgs e) { WeaponEditForm editForm = new WeaponEditForm(weapons[weaponsList.SelectedIndex]); editForm.ShowDialog(this); ReloadListBox(); }
private void addBox_Click(object sender, EventArgs e) { WeaponEditForm editForm = new WeaponEditForm(); editForm.ShowDialog(this); if (editForm.weapon != null) { weapons.Add(editForm.weapon); ReloadListBox(); } }