private void saveBtn_Click(object sender, EventArgs e) { DialogResult result = MessageBox.Show("Save analysis?", "Confirmation", MessageBoxButtons.YesNo); if (result == DialogResult.Yes) { if (sysdb.saveRecords(analysis.strideVelocity, analysis.stepLength, analysis.stepFrequency, ptID)) { MessageBox.Show("Records Saved!", "Success"); DialogResult result1 = MessageBox.Show("Go back to analysis?", "Confirmation", MessageBoxButtons.YesNo); if (result1 == DialogResult.Yes) { this.Hide(); gaitAnalysis analysis = new gaitAnalysis(ptID); analysis.ShowDialog(); this.Dispose(); } else { result1 = MessageBox.Show("Go back to menu?", "Confirmation", MessageBoxButtons.YesNo); if (result1 == DialogResult.Yes) { this.Hide(); Menu menu = new Menu(); menu.ShowDialog(); this.Dispose(); } } } } }
private void startBtn_Click(object sender, EventArgs e) { int ptID = (int)dataGrid.SelectedRows[0].Cells["patientID"].Value; gaitAnalysis gait = new gaitAnalysis(ptID); this.Hide(); gait.ShowDialog(); this.Dispose(); }
private void backBtn_Click(object sender, EventArgs e) { DialogResult result = MessageBox.Show("Go back to analysis without saving?", "Confirmation", MessageBoxButtons.YesNo); if (result == DialogResult.Yes) { this.Hide(); gaitAnalysis analysis = new gaitAnalysis(ptID); analysis.ShowDialog(); this.Dispose(); } else { result = MessageBox.Show("Go back to menu without saving?", "Confirmation", MessageBoxButtons.YesNo); if (result == DialogResult.Yes) { this.Hide(); Menu menu = new Menu(); menu.ShowDialog(); this.Dispose(); } } }