static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); IngressForm ingress = new IngressForm(); ingress.Init(); Application.Run(ingress); }
private static void staticAddSceneButton_Click(object sender, EventArgs e) { string input = ""; if (IngressForm.ShowInputDialog("Enter Scene Name", ref input) == DialogResult.OK) { IngressForm.GetInstance().AddScene(input); IngressListDialog.GetInstance().updateListBox(); IngressListDialog.GetInstance().listBox.SelectedIndex = IngressListDialog.GetInstance().listBox.Items.Count - 1; //if (!_scenes.Contains(input)) //{ // _scenes.Add(input); // sender.SceneListBox.Items.Add(input); //} } }
public IngressForm() { InitializeComponent(); _instance = this; }