Esempio n. 1
0
        private void editToolStripMenuItem_Click(object sender, EventArgs e)
        {
            WeaponEditForm editForm = new WeaponEditForm(weapons[weaponsList.SelectedIndex]);

            editForm.ShowDialog(this);

            ReloadListBox();
        }
Esempio n. 2
0
        private void addBox_Click(object sender, EventArgs e)
        {
            WeaponEditForm editForm = new WeaponEditForm();

            editForm.ShowDialog(this);

            if (editForm.weapon != null)
            {
                weapons.Add(editForm.weapon);
                ReloadListBox();
            }
        }