示例#1
0
 public Application(INativeApplication nativeApp)
 {
     if (nativeApp == null)
     {
         throw new ArgumentNullException("nativeApp");
     }
     this.nativeApp = nativeApp;
     application    = this;
 }
示例#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);
     }
 }
示例#3
0
 public static Application GetApplicationWithArgs(string[] args)
 {
     lock (locker)
     {
         if (application == null)
         {
             lock (locker)
             {
                 application = new Application(args);
             }
         }
         return(application);
     }
 }
示例#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);
     }
 }
示例#5
0
 public static Application GetApplicationWithArgs(string[] args)
 {
     lock(locker)
     {
         if(application == null)
         {
             lock(locker)
             {
                 application = new Application(args);
             }
         }
         return application;
     }
 }
示例#6
0
 public Application(INativeApplication nativeApp)
 {
     if (nativeApp == null)
         throw new ArgumentNullException ("nativeApp");
     this.nativeApp = nativeApp;
     application = this;
 }