예제 #1
0
 /// <summary>
 /// Initializes a new instance of <see cref="Terminal.Gui"/> Application.
 /// </summary>
 /// <remarks>
 /// <para>
 /// Call this method once per instance (or after <see cref="Shutdown"/> has been called).
 /// </para>
 /// <para>
 /// Loads the right <see cref="ConsoleDriver"/> for the platform.
 /// </para>
 /// <para>
 /// Creates a <see cref="Toplevel"/> and assigns it to <see cref="Top"/> and <see cref="CurrentView"/>
 /// </para>
 /// </remarks>
 public static void Init() => Init(() => Toplevel.Create());
예제 #2
0
 /// <summary>
 /// Initializes a new instance of <see cref="Terminal.Gui"/> Application.
 /// </summary>
 /// <remarks>
 /// <para>
 /// Call this method once per instance (or after <see cref="Shutdown"/> has been called).
 /// </para>
 /// <para>
 /// Loads the right <see cref="ConsoleDriver"/> for the platform.
 /// </para>
 /// <para>
 /// Creates a <see cref="Toplevel"/> and assigns it to <see cref="Top"/>
 /// </para>
 /// </remarks>
 public static void Init(ConsoleDriver driver = null, IMainLoopDriver mainLoopDriver = null) => Init(() => Toplevel.Create(), driver, mainLoopDriver);