Esempio n. 1
0
 /// <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();
 }
Esempio n. 2
0
 /// <summary>
 /// Default Constructor for console window
 /// </summary>
 public ConsoleWindow()
 {
     InitializeComponent();
     currentInstance = this;
     SetConsoleWindowInstance();
 }
Esempio n. 3
0
 private void ConsoleWindow1_Closing(object sender, CancelEventArgs e)
 {
     currentInstance = null;
     SetConsoleWindowInstance();
 }
Esempio n. 4
0
 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();
 }