/** * Auto start parser */ public static void autoStartParser(MainForm form) { if (WINCCSettings.Default.AutoRunParser || InvokeElements.getChecked(form.autoRunCheckBox)) { pool.createPool(); } }
static void Main(String[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.SetCompatibleTextRenderingDefault(false); WINCCSettings.Default.Save(); WINCCSettings.Default.LoggedUser = false; if (args.Length > 0 && args[0] == "enableDebugMode") { WINCCSettings.Default.DebugModeRun = true; } else { WINCCSettings.Default.DebugModeRun = false; }; WINCCSettings.Default.Save(); main = new MainForm(); main.FormClosing += new System.Windows.Forms.FormClosingEventHandler(Program.Form1_FormClosing); main.Show(); Application.Run(); }
public LoginForm(MainForm main) { mainForm = main; InitializeComponent(); }