protected async override void OnNavigatedTo(NavigationEventArgs e) { rootPage = ((Dictionary<Page, Patient>)e.Parameter).Keys.First() as NewPatient; if (e.Parameter != null) { Patient patient = patient = ((Dictionary<Page, Patient>)e.Parameter).Values.First(); PatientName = patient.LName + ", " + patient.FName; ImageSource = patient.ImageUri; Pa = patient; //phList = (await PatientHistory.ReadPatientHistoryList()).Where(ph => ph.PatientId.Equals(Pa.PatientID)).ToList(); // Run myRun1; //foreach(PatientHistory ph in phList){ // myRun1 = new Run(); // myRun1.Text = ph.InfoDate.Date +" "+ph.Cholestrol+" "+ph.Pulse+" "+ph.Temperature ; // Paragraph myParagraph = new Paragraph(); // myParagraph.Inlines.Add(myRun1); // textContent.Blocks.Add(myParagraph); //} getList(); } }
protected override void OnNavigatedTo(NavigationEventArgs e) { // Get a pointer to our main page rootPage = ((Dictionary<Page, Patient>)e.Parameter).Keys.First() as NewPatient; // init printing RegisterForPrinting(); }