Exemple #1
0
        public Record()
        {
            InitializeComponent();

            var app = App.Current as App;

            record = app.selectedRecord;

            patientdesp = app.PatientDescription;
            //  mail = app.selectedPatient;

            TextBlock_Name.Text   = "Name : " + record.PatientId;
            TextBlock_Age.Text    = "Age : " + patientdesp.Age;
            TextBlock_Gender.Text = "Gender : " + patientdesp.Gender;
            TextBlock_Desp.Text   = record.TextContent;

            TextBlock_DoctorId.Text = record.DoctorId;
            TextBlock_Time.Text     = record.Time;
        }
Exemple #2
0
        private void showDesp(string result)
        {
            XmlSerializer serializer = new XmlSerializer(typeof(PatientUserDataContract));

            //   result =   result ;
            XDocument document = XDocument.Parse(result);

            PatientUserDataContract Description = serializer.Deserialize(document.CreateReader()) as PatientUserDataContract;
            // ArrayOfMailDataContract mails = (ArrayOfMailDataContract) serializer.Deserialize(document.CreateReader());

            var app = App.Current as App;

            app.PatientDescription = (PatientUserDataContract)Description;

            textBlock_Name.Text               = "Name : " + Description.UserName;
            textBlock_Age.Text                = "Age : " + Description.Age;
            textBlock_Gender.Text             = "Gender : " + Description.Gender;
            textBlock_AllergyDrugs.Text       = "Allergy Drugs : \n" + Description.Allery;
            textBlock_PatientDescription.Text = "Description : \n" + Description.Description;
        }
Exemple #3
0
        public Record()
        {
            InitializeComponent();

            var app=App.Current as App;
            record=app.selectedRecord;

            patientdesp = app.PatientDescription;
          //  mail = app.selectedPatient;

            TextBlock_Name.Text = "Name : "+record.PatientId;
            TextBlock_Age.Text = "Age : "+ patientdesp.Age;
            TextBlock_Gender.Text = "Gender : "+ patientdesp.Gender;
            TextBlock_Desp.Text = record.TextContent;
            
            TextBlock_DoctorId.Text =record.DoctorId;
            TextBlock_Time.Text = record.Time;


        

        }