/// <summary> /// Constructor for colour picker window that takes the window instance that is creating this window /// PLEASE NOTE: This constructor should always be used so data can be passed back to the main window /// </summary> /// <param name="parent">The window that is creating this window </param> public ColourPickerWindow(ConsoleWindow parent) { this.parent = parent; InitializeComponent(); CreateGrid(); }
/// <summary> /// Default Constructor for console window /// </summary> public ConsoleWindow() { InitializeComponent(); currentInstance = this; SetConsoleWindowInstance(); }
private void ConsoleWindow1_Closing(object sender, CancelEventArgs e) { currentInstance = null; SetConsoleWindowInstance(); }
private void btn_Close_Click(object sender, RoutedEventArgs e) { currentInstance = null; SetConsoleWindowInstance(); Close(); }
/// <summary> /// Constructor for font picker window that takes the window instance that is creating this window /// PLEASE NOTE: This constructor should always be used so data can be passed back to the parent window /// </summary> /// <param name="parent">The window that is creating this window </param> public FontPickerWindow(ConsoleWindow parent) { this.parent = parent; InitializeComponent(); }