Пример #1
0
 /// <summary>
 ///  Creates ergometer
 /// </summary>
 private void bt_connect_Click(object sender, System.EventArgs e)
 {
     try
     {
         _ergometer         = new Ergometer(cb_ports.SelectedItem.ToString(), this);
         pn_patient.Visible = true;
         pn_connect.Visible = false;
     }
     catch (Exception ex)
     {
         Debug.WriteLine(ex.StackTrace);
     }
 }
Пример #2
0
 /// <summary>
 ///   Initializes a new instance of the <see cref="EnduranceTest" /> class.
 /// </summary>
 /// <param name="ergometer">The ergometer from which to get measurements.</param>
 /// <param name="patient">The patient who's being tested.</param>
 /// <param name="listener">The listener the test replies to.</param>
 public EnduranceTest(Ergometer ergometer, Patient patient, ITestListener listener)
 {
     _ergometer = ergometer;
     _listener  = listener;
     _patient   = patient;
 }