Exemplo n.º 1
0
 private void RefreshCaseEntry()
 {
     if (txtCaseNumber.Text != SqliteDataAcces.CaseNumberPrefix && txtCaseNumber.Text != "")
     {
         CaseEntry ce = SqliteDataAcces.GetCaseEntryLatestVersion(txtCaseNumber.Text);
         if (ce != null)
         {
             txtInterpretation.Text = ce.Interpretation;
             txtResultEntry.Text    = ce.Result;
             txtComment.Text        = ce.Comment;
             txtTumorSynoptic.Text  = ce.TumorSynoptic;
             message.Text           = $"Case entry found by: {ce.AuthorID} ({ce.DateModifiedString} {ce.TimeModifiedString})";
         }
         hasCaseNumberChanged = false;
     }
     else
     {
         message.Text = $"No case entry found";
     }
 }