/** * prompting the user to save their work (curently loaded patient) * */ public void saveChanges( ) { if (currentPatient != null) { DatabaseConverter manager = new DatabaseConverter(dbCon); DialogResult result; result = MessageBox.Show("Save changes for current patient?", "", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (result == System.Windows.Forms.DialogResult.Yes) { manager.insertPatientNote(currentPatient, notes); } if (result == System.Windows.Forms.DialogResult.No) { } notes.Clear( ); } else { } }