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); } }
static void Main(String[] arguments) { if (SingleInstanceApp.AlreadyExists) { if (!MultiInstanceMode) { SingleInstanceApp.NotifyExistingInstance(arguments); } else { RunFlashDevelopWithErrorHandling(arguments, false); } } else { RunFlashDevelopWithErrorHandling(arguments, true); } }
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); } }