Esempio n. 1
0
        private void buttonAddShipPart_Click(object sender, EventArgs e)
        {
            ShipModel tag = GetCurrentShipTag();

            if (tag == null)
            {
                return;
            }
            ShipModelSlot slot = tag.AddSlot();

            listShipSlots.Items.Add(slot);
            listShipSlots.SelectedItem = slot;
        }