public void addScenarioItem(ScenarioItem item, bool select = false) { item.attachTo(pictureBox1); listBox1.Items.Add(item.ToString()); if (select) { zoneData.setSelectedItem(item.ToString()); listBox1.SelectedItem = item.ToString(); } redraw(); }
public void deleteItem(ScenarioItem item) { item.detachFrom(pictureBox1); listBox1.Items.Remove(item.ToString()); redraw(); }