コード例 #1
0
 private void frmUI_FormClosing(object sender, FormClosingEventArgs e)
 {
     //personDataList.Add(person.SerialData);//this saves the last person into the list ie. others are saved on entry of new person
     SavePersonData(); //save/serialize personDataList
     sound.EndCurrentEnvironment();
     SendMCECommand.StopTreadmill();
     Application.Exit();
 }
コード例 #2
0
 private void frmUI_FormClosing(object sender, FormClosingEventArgs e)
 {
     SendMCECommand.StopTreadmill();
     if (plotFeet != null)
     {
         plotFeet.Dispose();
     }
     Application.Exit();
 }
コード例 #3
0
 private void btnReset_Click(object sender, EventArgs e)
 {
     SendMCECommand.StopTreadmill();
     nudSpeed.Value     = 0;
     nudElevation.Value = 0;
 }
コード例 #4
0
 private void frmUI_FormClosing(object sender, FormClosingEventArgs e)
 {
     SendMCECommand.StopTreadmill();
     Application.Exit();
 }