Example #1
0
 private void LogDurationUserSpecButton_Click(object sender, EventArgs e)
 {
     if (this._comm != null)
     {
         string            str    = string.Format("{0}: Set User Log Messages", this._comm.PortName);
         frmErrorLogConfig config = new frmErrorLogConfig(this._comm, 1);
         config.Text = str;
         config.ShowDialog();
     }
 }
Example #2
0
 private void createDebugErrorLogWin()
 {
     if (PortManagerHash.Count > 0)
     {
         bool flag = false;
         PortManager manager = null;
         foreach (string str in PortManagerHash.Keys)
         {
             if (!(str == clsGlobal.FilePlayBackPortName))
             {
                 manager = (PortManager) PortManagerHash[str];
                 if ((manager != null) && manager.comm.IsSourceDeviceOpen())
                 {
                     flag = true;
                     break;
                 }
             }
         }
         if (flag && (manager != null))
         {
             string str2 = "Set Debug Log Error: All";
             frmErrorLogConfig config = new frmErrorLogConfig(manager.comm, 0);
             config.Text = str2;
             config.ShowDialog();
         }
     }
 }
Example #3
0
 private void configureDebugErrorLogToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (((toolStripPortComboBox.Text != string.Empty) && (toolStripPortComboBox.Text != clsGlobal.FilePlayBackPortName)) && (PortManagerHash.Count > 0))
     {
         if (toolStripPortComboBox.Text == "All")
         {
             clsGlobal.PerformOnAll = true;
             createDebugErrorLogWin();
         }
         else
         {
             clsGlobal.PerformOnAll = false;
             PortManager manager = (PortManager) PortManagerHash[toolStripPortComboBox.Text];
             if ((manager != null) && (manager.comm != null))
             {
                 string str = string.Format("{0}: Set Debug Log Error", manager.comm.PortName);
                 frmErrorLogConfig config = new frmErrorLogConfig(manager.comm, 0);
                 config.Text = str;
                 config.ShowDialog();
             }
         }
     }
 }
Example #4
0
 private void LogDurationUserSpecButton_Click(object sender, EventArgs e)
 {
     if (this._comm != null)
     {
         string str = string.Format("{0}: Set User Log Messages", this._comm.PortName);
         frmErrorLogConfig config = new frmErrorLogConfig(this._comm, 1);
         config.Text = str;
         config.ShowDialog();
     }
 }