Esempio n. 1
0
 //on load
 public Task ActivateAsync(string token, Patient patient, string username)
 {
     this.token               = token;
     this.note                = new EHR.Data.Models.Note();
     this.patient             = patient;
     this.PatientName.Content = patient.Name;
     return(Task.CompletedTask);
 }
 //load page
 public Note(string token, Patient patient, EHR.Data.Models.Note note)
 {
     InitializeComponent();
     this.token               = token;
     this.patient             = patient;
     this.note                = note;
     this.PatientName.Content = patient.Name;
     this.NoteText.Content    = note.Text;
     this.Recorded.Content    = note.Recorded;
     this.NoteBy.Content      = note.UserOrdered?.UserName;
 }