Esempio n. 1
0
        private void Termini_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            var selitem = Termini.SelectedValue;

            if (CurrentAppoitments != null && CurrentAppoitments.Count() > 0)
            {
                BeginApp = ((MedicalAppointmentDTO)selitem).Beginning;
                EndApp   = ((MedicalAppointmentDTO)selitem).End;
                if (((MedicalAppointmentDTO)selitem).Type != MedicalAppointmentType.operation)
                {
                    OperacijeTab.Visibility = Visibility.Hidden;
                }
                else
                {
                    OperacijeTab.Visibility = Visibility.Visible;
                }

                TypeOfTermin = ((MedicalAppointmentDTO)selitem).Type.ToString();

                //LoggedInPatient = ((MedicalAppointmentDTO)selitem).Patient;
                PatientsName.Text    = ((MedicalAppointmentDTO)selitem).Patient.FirstName;
                PatientsLasName.Text = ((MedicalAppointmentDTO)selitem).Patient.LastName;
                PatientsH.Text       = ((MedicalAppointmentDTO)selitem).Patient.Height.ToString();
                PatientsW.Text       = ((MedicalAppointmentDTO)selitem).Patient.Weight.ToString();
                //PateintsState.Text = ((MedicalAppointmentDTO)selitem).Patient. ;
                PatientdApp.Text = ((MedicalAppointmentDTO)selitem).Type.ToString();
            }
        }
Esempio n. 2
0
 private void CalendarChoose_SelectedDatesChanged(object sender, SelectionChangedEventArgs e)
 {
     SelecetedDate2.Content = SelectedDate.ToShortDateString();
     //CurrentAppoitments = new ObservableCollection<MedicalAppointmentDTO>();
     CurrentAppoitments.Clear();
     foreach (MedicalAppointmentDTO termin in Appoitments)
     {
         if (termin.Beginning.CompareTo(SelectedDate) >= 0 && termin.Beginning.CompareTo(SelectedDate.AddDays(1)) <= 0)
         {
             CurrentAppoitments.Add(termin);
         }
     }
     if (CurrentAppoitments.Count >= 1)
     {
     }
 }