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(); }
private void frmUI_FormClosing(object sender, FormClosingEventArgs e) { SendMCECommand.StopTreadmill(); if (plotFeet != null) { plotFeet.Dispose(); } Application.Exit(); }
private void btnReset_Click(object sender, EventArgs e) { SendMCECommand.StopTreadmill(); nudSpeed.Value = 0; nudElevation.Value = 0; }
private void frmUI_FormClosing(object sender, FormClosingEventArgs e) { SendMCECommand.StopTreadmill(); Application.Exit(); }