Esempio n. 1
0
 private void button_refresh_Click(object sender, EventArgs e)
 {
     string name = main.name;
     clearConsole();
     main = new PseudoMain(this);
     main.init();
     main.name = name;
     loadedFile.Text = main.name.Split('\\')[main.name.Split('\\').Length - 1];
     main.start(main.name);
 }
Esempio n. 2
0
        private void button_open_new_file_Click(object sender, EventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();

            if (ofd.ShowDialog() == DialogResult.OK)
            {
                modVisible(new Control[] { findControl("editor_panel"), findControl("editor") }, false);
                modVisible(new Control[] { findControl("console"), findControl("console_panel") }, true);
                clearConsole();
                main = new PseudoMain(this);
                main.init();
                main.name = ofd.FileName;
                loadedFile.Text = main.name.Split('\\')[main.name.Split('\\').Length - 1];
                main.start(main.name);
            }
        }