コード例 #1
0
ファイル: Application.cs プロジェクト: AreonDev/NoWayOut
 /// <summary>
 /// Create an application with the specified name. THIS IS GLOBAL - DO NOT USE MORE THAN ONCE!
 /// This should be the last call of your main method. Only run in main thread!
 /// </summary>
 /// <param name="name">Name.</param>
 /// <param name="args">Command line arguments.</param>
 public static void Create (string name, string[] args)
 {
     Instance = new Application (name, args);
     Instance.Init ();
     Instance.Load ();
     Instance.Run ();
     Instance.Destroy ();
 }
コード例 #2
0
ファイル: Application.cs プロジェクト: AreonDev/NoWayOut
 /// <summary>
 /// Create an application with the specified name.
 /// This should be the last call of your main method. Only run in main thread!
 /// </summary>
 /// <param name="name">Name.</param>
 /// <param name="args">Command line arguments.</param>
 public static Application CreateApp (string name, string[] args)
 {
     Application app = new Application (name, args);
     app.Init ();
     app.Load ();
     app.Run ();
     app.Destroy ();
     return app;
 }