Exemplo n.º 1
0
 public Application(INativeApplication nativeApp)
 {
     if (nativeApp == null)
     {
         throw new ArgumentNullException("nativeApp");
     }
     this.nativeApp = nativeApp;
     application    = this;
 }
Exemplo n.º 2
0
 public static void Main(string[] args)
 {
     try
     {
         application = GetApplicationWithArgs(args);
         application.StartMainLoop();
     }
     catch (Exception e)
     {
         Tasque.Logger.Debug("Exception is: {0}", e);
         Instance.NativeApplication.Exit(-1);
     }
 }
Exemplo n.º 3
0
 public static Application GetApplicationWithArgs(string[] args)
 {
     lock (locker)
     {
         if (application == null)
         {
             lock (locker)
             {
                 application = new Application(args);
             }
         }
         return(application);
     }
 }
Exemplo n.º 4
0
 public static void Main(string[] args)
 {
     try
     {
         application = GetApplicationWithArgs(args);
         application.StartMainLoop ();
     }
     catch (Exception e)
     {
         Tasque.Logger.Debug("Exception is: {0}", e);
         Instance.NativeApplication.Exit (-1);
     }
 }
Exemplo n.º 5
0
 public static Application GetApplicationWithArgs(string[] args)
 {
     lock(locker)
     {
         if(application == null)
         {
             lock(locker)
             {
                 application = new Application(args);
             }
         }
         return application;
     }
 }
Exemplo n.º 6
0
 public Application(INativeApplication nativeApp)
 {
     if (nativeApp == null)
         throw new ArgumentNullException ("nativeApp");
     this.nativeApp = nativeApp;
     application = this;
 }