예제 #1
0
        public PatientsPageViewModelSampleData()
        {
            PatientSelectorViewModel = new PatientSelectorViewModelSampleData();

            IsPatientSelected = true;
            IsPatientAlive    = false;

            PatientName       = "John Doe";
            PatientBirthday   = new Date(1, 1, 2000);
            PatientExternalId = "exampleExternal-ID";
            PatientInternalId = "exampleInternal-ID";
        }
예제 #2
0
        public AddAppointmentDialogViewModelSampleData()
        {
            PatientSelectorViewModel = new PatientSelectorViewModelSampleData();

            SelectedPatient = new Patient("John Doh", new Date(12, 4, 1978), true, new Guid(), "externalID", false);

            DurationHours   = 2;
            DurationMinutes = 15;

            CreationState = AppointmentCreationState.NoPatientSelected;

            AllAvailablesLabels = new ObservableCollection <Label>
            {
                new Label("label1", Colors.Aqua, Guid.NewGuid()),
                new Label("label2", Colors.BurlyWood, Guid.NewGuid()),
                new Label("label3", Colors.Chartreuse, Guid.NewGuid()),
                new Label("label4", Colors.Gold, Guid.NewGuid())
            };

            SelectedLabel = AllAvailablesLabels[2];
        }
예제 #3
0
        public SearchPageViewModelSampleData()
        {
            PatientSelectorViewModel = new PatientSelectorViewModelSampleData();

            DisplayedAppointments = new ObservableCollection <DisplayAppointmentData>
            {
                new DisplayAppointmentData(new AppointmentTransferData(Guid.Empty, "testApp1", new Date(21, 10, 2015),
                                                                       new Time(10, 30), new Time(12, 45), Guid.Empty,
                                                                       Guid.Empty, Guid.Empty, Guid.Empty), "Fürth"),

                new DisplayAppointmentData(new AppointmentTransferData(Guid.Empty, "testApp2", new Date(22, 10, 2015),
                                                                       new Time(11, 30), new Time(13, 45), Guid.Empty,
                                                                       Guid.Empty, Guid.Empty, Guid.Empty), "Fürth"),

                new DisplayAppointmentData(new AppointmentTransferData(Guid.Empty, "testApp3", new Date(23, 10, 2015),
                                                                       new Time(12, 30), new Time(14, 45), Guid.Empty,
                                                                       Guid.Empty, Guid.Empty, Guid.Empty), "Fürth")
            };

            SelectedPatient          = "John Doe";
            ShowPreviousAppointments = true;
            NoAppointmentsAvailable  = true;
        }