Esempio n. 1
0
        public test_IDE()
        {
            InitializeComponent();

            TextBoxOutputter output = new TextBoxOutputter(this.consoleTextBox);

            Console.SetOut(output);


            Console.WriteLine("Welcome to Haven IDE!");


            gameComboBox2.DataSource = GUI.GamesDropdown;

            gameComboBox2.SelectionChangeCommitted += new EventHandler(Game_Changed);
            tabControl1.SelectedIndexChanged       += TabChanged;



            if (!File.Exists("Game.txt"))
            {
                File.Create("Game.txt");
            }

            try
            {
                gameComboBox2.SelectedIndex = GUI.GamesDropdown.IndexOf(File.ReadAllLines("Game.txt")[0]);
                FilePaths.selectedGame      = gameComboBox2.SelectedIndex;
            }
            catch { }

            //tabControl1.SelectedIndexChanged += onChangeTab;
        }
Esempio n. 2
0
        public test_IDE()
        {
            InitializeComponent();

            TextBoxOutputter output = new TextBoxOutputter(this.richTextBox1);

            Console.SetOut(output);

            Console.WriteLine("Welcome to Haven IDE!");

            gameComboBox2.DataSource = GUI.GamesDropdown;

            gameComboBox2.SelectionChangeCommitted += new EventHandler(Game_Changed);

            if (File.Exists("Game.txt"))
            {
                try { gameComboBox2.SelectedIndex = GUI.GamesDropdown.IndexOf(File.ReadAllLines("Game.txt")[0]);
                      FilePaths.selectedGame      = gameComboBox2.SelectedIndex; } catch { }
            }
            else
            {
                File.WriteAllText("Game.txt", "Persona 4 Golden");
                gameComboBox2.SelectedIndex = GUI.GamesDropdown.IndexOf("Persona 4 Golden");
                FilePaths.selectedGame      = gameComboBox2.SelectedIndex;
            }
        }