Exemplo n.º 1
0
 /**
  * Auto start parser
  */
 public static void autoStartParser(MainForm form)
 {
     if (WINCCSettings.Default.AutoRunParser || InvokeElements.getChecked(form.autoRunCheckBox))
     {
         pool.createPool();
     }
 }
Exemplo n.º 2
0
 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();
 }
Exemplo n.º 3
0
 public LoginForm(MainForm main)
 {
     mainForm = main;
     InitializeComponent();
 }