/// <summary> /// Initializes a new instance of the <see cref="DebugWindow"/> class. /// </summary> /// <param name="mainWindow">The main window object.</param> public DebugWindow(Window mainWindow) { // Sets the Ownership of this window to the main window this.Owner = mainWindow; _parent = (MainWindow)mainWindow; // Initialize the command string buffer command = string.Empty; // Initialize the xaml objects InitializeComponent(); // Sets the windos dimensions this.Height = 400; this.Width = 500; }
public COM_Window(Window p) { parent = (MainWindow)p; InitializeComponent(); comPort = new SerialPort(); comPort.BaudRate = 19200; comPort.Handshake = Handshake.None; comPort.StopBits = StopBits.One; comPort.Parity = Parity.None; NoneParityRB.IsChecked = true; NoneHandshakeRB.IsChecked = true; baud19200RB.IsChecked = true; StopBit1RB.IsChecked = true; }