예제 #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            IngressForm ingress = new IngressForm();

            ingress.Init();
            Application.Run(ingress);
        }
예제 #2
0
        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);
                //}
            }
        }
예제 #3
0
 public IngressForm()
 {
     InitializeComponent();
     _instance = this;
 }