Exemplo n.º 1
0
 static void Main(string[] args)
 {
     /*string[] commandLine = Environment.GetCommandLineArgs();
      * if(commandLine.Contains("/associate"))
      * {
      *  if (VistaSecurity.IsAdmin())
      *  {
      *      LCD_Settings.Associate();
      *  }
      *  Application.Exit();
      * }
      * Application.EnableVisualStyles();
      * Application.SetCompatibleTextRenderingDefault(false);
      * //Application.Run(new Form1());
      * Application.Run(new Interface.LCD());*/
     if (args.Contains("/associate"))
     {
         if (VistaSecurity.IsAdmin())
         {
             LCD_Settings.Associate();
         }
         Application.Exit();
     }
     else
     {
         Application.EnableVisualStyles();
         Application.SetCompatibleTextRenderingDefault(false);
         LCDProgram program = new LCDProgram();
         program.Run(args);
     }
 }
Exemplo n.º 2
0
 static void Main(string[] args)
 {
     if (args.Contains("/associate"))
     {
         if (VistaSecurity.IsAdmin())
         {
             LCD_Settings.Associate();
         }
         Application.Exit();
     }
     else
     {
         Application.EnableVisualStyles();
         Application.SetCompatibleTextRenderingDefault(false);
         LCDProgram program = new LCDProgram();
         program.Run(args);
     }
 }