示例#1
0
 public ResponseAnalyzer(string input, DialogWin Error_in)
 {
     //constructor that uses a single dialg from the parent
     expectedResponse = input;
     Error = Error_in;
 }
示例#2
0
 private void createTestDialog()
 {
     if (ResultWindow == null || ResultWindow.IsDisposed)
     {
         ResultWindow = new DialogWin(true);
     }
     ResultWindow.Location = centerNewWindow(ResultWindow.Width, ResultWindow.Height);
 }
示例#3
0
 public ResponseAnalyzer(string input)
 {
     //constructor where each instance creates a new dialog window
     expectedResponse = input;
     Error = new DialogWin(false);
 }
示例#4
0
        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;
        }