Exemple #1
0
        static void Main(string[] args)
        {
#if WINDOWS
            // Sciter needs this for drag'n'drop support; STAThread is required for OleInitialize succeess
            int oleres = PInvokeWindows.OleInitialize(IntPtr.Zero);
            Debug.Assert(oleres == 0);
#endif
#if GTKMONO
            PInvokeGTK.gtk_init(IntPtr.Zero, IntPtr.Zero);
            Mono.Setup();
#endif

#if false
//#if !DEBUG && WINDOWS
            if (SingleInstance.IsRunningAndAcquire())
            {
                return;
            }
#endif

            App.Run();

#if false
//#if !DEBUG && WINDOWS
            SingleInstance.Release();
#endif
        }
Exemple #2
0
 public override void DidFinishLaunching(NSNotification notification)
 {
     Mono.Setup();
     App.Run();
 }