private void refreshCaseData() { RefreshComparison(); var cn = cmbCaseNumber.SelectedValue; var lastService = cmbService.Text; // save the last service so that we do not have to keep entering it for each eval if (cn != null) { var caselyUserData = SqliteDataAcces.GetCaselyUserData(cn.ToString()); cmbSelfEvaluation.Text = caselyUserData.Evaluation != null ? caselyUserData.Evaluation : ""; txtSelfEvalComments.Text = caselyUserData.EvaluationComment != null ? caselyUserData.EvaluationComment : ""; cmbService.Text = caselyUserData.Service != null ? caselyUserData.Service : lastService; } }