public ResponseAnalyzer(string input, DialogWin Error_in) { //constructor that uses a single dialg from the parent expectedResponse = input; Error = Error_in; }
private void createTestDialog() { if (ResultWindow == null || ResultWindow.IsDisposed) { ResultWindow = new DialogWin(true); } ResultWindow.Location = centerNewWindow(ResultWindow.Width, ResultWindow.Height); }
public ResponseAnalyzer(string input) { //constructor where each instance creates a new dialog window expectedResponse = input; Error = new DialogWin(false); }
private void CleanClose(object sender, EventArgs e) { //close the serial port on close try { this.currentConnection.closeSerialPort(); } catch { } //close any results window try { ResultWindow.Close(); ResultWindow.Dispose(); ResultWindow = null; } catch { } //close any scripts that are running try { this.serialScript = null; } catch { } this.AllWindowsClosed = true; }