public ChangePasswordPage(StartPatientWindow spw, PatientMedicalRecordPage pmrp) { parentp = spw; pparent = pmrp; _patient = spw.Patient; InitializeComponent(); }
public PatientAllergensPage(StartPatientWindow spw) { _parentp = spw; _patient = spw.Patient; InitializeComponent(); GetItemsForListView(); }
public PatientMedicalRecordPage(StartPatientWindow pp) { parent = pp; Patient = pp.Patient; InitializeComponent(); borderWindow.Content = new MedicalRecordPage(pp, this); }
public PatientExaminesAppointmentPage(StartPatientWindow pp) { parent = pp; _patient = pp.Patient; InitializeComponent(); this.DataContext = this; updateTable(); }
public MedicalRecordPage(StartPatientWindow p, PatientMedicalRecordPage pmrp) { pp = p; parentp = pmrp; _patient = pp.Patient; InitializeComponent(); LoadData(); }
public PatientMakesAppointmentByPriorityPage(StartPatientWindow pp) { parent = pp; InitializeComponent(); parent.UpdateVisibilityOfComponents(); parent.titleLabel.Visibility = Visibility.Hidden; parent.titlePriorityLabel.Visibility = Visibility.Visible; parent.titlePriorityLabel.Content = "Izaberite prioritet pretrage"; }
public RatingPage(StartPatientWindow pp) { parent = pp; _patient = pp.Patient; InitializeComponent(); PretraziTermine(); DataContext = this; Provjera(); }
public PatientExamineAnamnesesPage(StartPatientWindow pp, PatientMedicalRecordPage pkp) { parent = pp; _loggedInPatient = pp.Patient; karton = pkp; InitializeComponent(); this.DataContext = this; addNoteButton.IsEnabled = false; FillTable(); }
public TherapyPatientPage(StartPatientWindow spw) { _parentp = spw; _patient = spw.Patient; InitializeComponent(); calendarComponents(); mjeseci.SelectionChanged += (o, e) => osvjeziPrikazKalendara(); godine.SelectionChanged += (o, e) => osvjeziPrikazKalendara(); }
public PriorityTimePage(StartPatientWindow pp, PatientMakesAppointmentByPriorityPage pzppp) { parent = pp; parentp = pzppp; listStart = new List <string>(); listEnd = new List <string>(); InitializeComponent(); DataContext = this;; BlackOutDates(); submit.IsEnabled = false; date.IsEnabled = false; slobodniTerminiLabela.Visibility = Visibility.Hidden; PrikazSlobodnihTermina.Visibility = Visibility.Hidden; InitializeStartTimes(); endTime.IsEnabled = false; }
public AddingNotesPage(StartPatientWindow pp, PatientMedicalRecordPage pkp, Anamnesis selected) { _isPressedReminderButton = false; _newNote = new Note(); _selectedAnamnesis = selected; _medicalRecord = pkp; _pparent = pp; InitializeComponent(); _elementsInComboBox = new List <String>(); BlackOutDates(); endDatePicker.IsEnabled = false; endMomentComboBox.IsEnabled = false; UpdateVisibilityOfComponents(); FillStartMomentComboBox(); addNote.IsEnabled = false; }
public PatientMakesAppointmentPage(StartPatientWindow p) { parent = p; InitializeComponent(); parent.UpdateVisibilityOfComponents(); availableTimes = new List <string>(); timeComboBox(); dugmePotvrdi.IsEnabled = false; prostorije = _roomController.GetAllRooms(); BlackOutDates(); lekari = new List <global::Doctor>(); FillDoctorsComboBox(); lekar.ItemsSource = lekari; _patient = parent.Patient; parent.titleLabel.Content = "Zakazivanje pregleda"; parent.titleLabel.Visibility = Visibility.Visible; }
public PatientRatesPage(RatingPage ap, StartPatientWindow pp, Appointment t) { parentp = ap; selektovan = t; parent = pp; InitializeComponent(); submit.IsEnabled = false; if (parentp._kojiJePritisnut == parentp.rate) { parent.imeLjekara.Text = "dr. " + t.Doctor.Name + " " + t.Doctor.Surname; } else { parent.imeLjekara.Text = null; } InitializeComboBox(); parent.UpdateVisibilityOfComponents(); }
public PatientEditsAppointmentPage(Appointment selektovan, StartPatientWindow prozor) { this.selektovan = selektovan; this.parent = prozor; brojac = 0; InitializeComponent(); parent.titleLabel.Content = "Pomeranje termina"; parent.titleLabel.Visibility = Visibility.Visible; availableTimes = new List <string>(); termini = _appointmentController.GetAll(); time.ItemsSource = availableTimes; prostorije = _roomController.GetAllRooms(); LoadTimes(); BlackOutDates(); date.SelectedDate = selektovan.AppointmentDate; time.SelectedItem = selektovan.AppointmentDate.ToString("HH:mm"); lekari = new List <global::Doctor>(); FillDoctorsComboBox(); SetSelectedDoctor(); }
public StatisticsForDoctorPage(StartPatientWindow spw, Appointment _selected) { _parentp = spw; _ratedDoctor = _selected.Doctor; InitializeComponent(); _parentp.ratingSuccessful.Visibility = Visibility.Visible; _parentp.titleLabel.Visibility = Visibility.Visible; doctorsName.Content = "Sveukupne ocene za lekara po imenu dr. " + _ratedDoctor.Name + " " + _ratedDoctor.Surname; /* Func<ChartPoint, string> labelPoint = chartPoint => * string.Format("{0} ({1:P})", chartPoint.Y, chartPoint.Participation); * Jedan.Values= new ChartValues<double> { _ratingController.GetNumberOfRating(1, _ratedDoctor)} ; * Dva.Values = new ChartValues<double> { _ratingController.GetNumberOfRating(2, _ratedDoctor) }; * Tri.Values = new ChartValues<double> { _ratingController.GetNumberOfRating(3, _ratedDoctor) }; * Cetiri.Values = new ChartValues<double> { _ratingController.GetNumberOfRating(4, _ratedDoctor) }; * Pet.Values = new ChartValues<double> { _ratingController.GetNumberOfRating(5, _ratedDoctor) };*/ SeriesCollection = new SeriesCollection { new LineSeries { Title = "Broj ocena", Values = new ChartValues <double> { _ratingsWrittenByPatientController.GetNumberOfRating(1, _ratedDoctor), _ratingsWrittenByPatientController.GetNumberOfRating(2, _ratedDoctor), _ratingsWrittenByPatientController.GetNumberOfRating(3, _ratedDoctor), _ratingsWrittenByPatientController.GetNumberOfRating(4, _ratedDoctor), _ratingsWrittenByPatientController.GetNumberOfRating(5, _ratedDoctor) } } }; Labels = new[] { "Ocena 1", "Ocena2", "Ocena 3", "Ocena 4", "Ocena 5" }; YFormatter = value => value.ToString("N"); //modifying the series collection will animate and update the chart //modifying any series values will also animate and update the chart DataContext = this; }
public PriorityDoctorPage(StartPatientWindow pp, PatientMakesAppointmentByPriorityPage pzppp) { parent = pp; parentp = pzppp; termini = new List <Appointment>(); InitializeComponent(); ljekariLista = new List <global::Doctor>(); foreach (Doctor l in _doctorControler.GetAll()) { if (l.doctorType == DoctorType.generalPractitioner) { ljekariLista.Add(l); } } ljekari.ItemsSource = ljekariLista; submit.IsEnabled = false; BlackOutDates(); date.IsEnabled = false; timeLabel.Visibility = Visibility.Hidden; times.Visibility = Visibility.Hidden; availableTimes = new List <string>(); }
public StartPatientPage(StartPatientWindow p) { InitializeComponent(); DataContext = new StartPatientPageViewModel(p); }
public PatientFeedbackPage(StartPatientWindow swp) { _parent = swp; InitializeComponent(); this.DataContext = new FeedbackViewModel(_parent.Patient.Username); }
public NotificationPatientPage(StartPatientWindow pp) { InitializeComponent(); DataContext = new NotificationPatientViewModel(pp); }