Пример #1
0
 /// <summary>
 /// Called when [startup window load].
 /// </summary>
 /// <param name="startupWindow">The startup window.</param>
 protected virtual void OnStartupWindowLoad(ConsoleWindow startupWindow)
 => StartupWindowLoad?.Invoke(this, EventArgs.Empty);
Пример #2
0
 private void RemoveWindow(ConsoleWindow window) => WindowList.Remove(window);
Пример #3
0
 /// <summary>
 /// Shows the window.
 /// </summary>
 /// <param name="window">The window.</param>
 protected virtual void ShowWindow(ConsoleWindow window)
 => window.Show();
Пример #4
0
 /// <summary>
 /// Afters the add window.
 /// </summary>
 /// <param name="window">The window.</param>
 protected virtual void AfterAddWindow(ConsoleWindow window)
 {
 }
Пример #5
0
 /// <summary>
 /// Called when [window closed].
 /// </summary>
 /// <param name="window">The window.</param>
 protected virtual void OnWindowClosed(ConsoleWindow window)
 => RemoveWindow(window);
Пример #6
0
 /// <summary>
 /// Gets the child windows.
 /// </summary>
 /// <param name="winWindow">The win window.</param>
 /// <returns></returns>
 protected virtual List <ConsoleWindow> GetChildWindows(ConsoleWindow winWindow) =>
 new List <ConsoleWindow>();
 /// <summary>
 /// Initializes a new instance of the <see cref="ConsoleWindowShowingEventArgs"/> class.
 /// </summary>
 /// <param name="window">The window.</param>
 /// <param name="form">The form.</param>
 public ConsoleWindowShowingEventArgs(ConsoleWindow window, ConsoleForm form) :
     this(window, form, false)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ConsoleWindowShowingEventArgs"/> class.
 /// </summary>
 /// <param name="window">The window.</param>
 /// <param name="form">The form.</param>
 /// <param name="isModal">if set to <c>true</c> [is modal].</param>
 public ConsoleWindowShowingEventArgs(ConsoleWindow window, ConsoleForm form, bool isModal)
 {
     Window  = window;
     Form    = form;
     IsModal = isModal;
 }