void lightListClick(object sender, EventArgs e) { if (listBox1.SelectedItem == null) { return; } World.VisualLightEntry vse = listBox1.SelectedItem as World.VisualLightEntry; UI.Dialogs.LightCreator lc = UI.Dialogs.LightCreator.InitFromExistingLight(vse.Entry); lc.ShowDialog(); }
private void button1_Click(object sender, EventArgs e) { UI.Dialogs.LightCreator lc = new UI.Dialogs.LightCreator(); lc.ShowDialog(); }