Пример #1
0
 static void Main(String[] arguments)
 {
     if (Win32.ShouldUseWin32())
     {
         if (SingleInstanceApp.AlreadyExists)
         {
             Boolean reUse = Array.IndexOf(arguments, "-reuse") > -1;
             if (!MultiInstanceMode || reUse)
             {
                 SingleInstanceApp.NotifyExistingInstance(arguments);
             }
             else
             {
                 RunFlashDevelopWithErrorHandling(arguments, false);
             }
         }
         else
         {
             RunFlashDevelopWithErrorHandling(arguments, true);
         }
     }
     else // For other platforms
     {
         Application.EnableVisualStyles();
         Application.SetCompatibleTextRenderingDefault(false);
         MainForm.IsFirst   = true;
         MainForm.Arguments = arguments;
         MainForm mainForm = new MainForm();
         Application.Run(mainForm);
     }
 }
Пример #2
0
 static void Main(String[] arguments)
 {
     if (SingleInstanceApp.AlreadyExists)
     {
         if (!MultiInstanceMode)
         {
             SingleInstanceApp.NotifyExistingInstance(arguments);
         }
         else
         {
             RunFlashDevelopWithErrorHandling(arguments, false);
         }
     }
     else
     {
         RunFlashDevelopWithErrorHandling(arguments, true);
     }
 }
Пример #3
0
 static void Main(String[] arguments)
 {
     if (SingleInstanceApp.AlreadyExists)
     {
         Boolean reUse = Array.IndexOf(arguments, "-reuse") > -1;
         if (!MultiInstanceMode || reUse)
         {
             SingleInstanceApp.NotifyExistingInstance(arguments);
         }
         else
         {
             RunFlashDevelopWithErrorHandling(arguments, false);
         }
     }
     else
     {
         RunFlashDevelopWithErrorHandling(arguments, true);
     }
 }