private void FormLoad(object sender, EventArgs e) { // setup log file log = new StreamWriter("AIGgen_log.txt"); Console.SetOut(log); // initialize dumb tab workaround and turn off all but first tab tab = new TabPage[(int)Consts.Tab.num_tabs]; tabVisible = new bool[(int)Consts.Tab.num_tabs]; for (int i = 0; i < (int)Consts.Tab.num_tabs; i++) { tab[i] = (TabPage)tabControlConfig.GetControl(i); tabVisible[i] = true; } for (int i = 1; i < (int)Consts.Tab.num_tabs; i++) UTIL_tabHide(i); // setup pinmux control arrays UTIL_setupPinmuxArrays(); // create error icons error = new ParamError(this); // initialize boot options and apply to forms options = new BootOptions(); UTIL_refreshFields(); }
// MENU COMMAND HANDLERS -------------------------------------------------------------- private void restoreDefaultsToolStripMenuItem_Click(object sender, EventArgs e) { // reset active tab to General tabControlConfig.SelectedIndex = 0; // initialize boot options and apply to forms options = new BootOptions(); UTIL_refreshFields(); }