Ejemplo n.º 1
0
 public NotificationMenuViewModel(INotificationService notificationService, ICalendarEntryService calendarEntryService)
 {
     _notificationService  = notificationService;
     _calendarEntryService = calendarEntryService;
     Notifications         = new ObservableCollection <Notification>();
     ResolveNotification   = new RelayCommand(ExecuteResolveNotification);
 }
Ejemplo n.º 2
0
 public ReportService(ICalendarEntryService calendarEntryService, IAppointmentService appointmentService, IRoomService roomService, IDoctorService doctorService)
 {
     _calendarEntryService = calendarEntryService;
     _roomService          = roomService;
     _doctorService        = doctorService;
     _appointmentService   = appointmentService;
 }
Ejemplo n.º 3
0
        public CalendarEntryServiceTests()
        {
            this.storageBrokerMock  = new Mock <IStorageBroker>();
            this.loggingBrokerMock  = new Mock <ILoggingBroker>();
            this.dateTimeBrokerMock = new Mock <IDateTimeBroker>();

            this.calendarEntryService = new CalendarEntryService(
                storageBroker: this.storageBrokerMock.Object,
                dateTimeBroker: this.dateTimeBrokerMock.Object,
                loggingBroker: this.loggingBrokerMock.Object);
        }
Ejemplo n.º 4
0
        public ScheduleViewModel(IRoomService roomService, ICalendarEntryService calendarEntryService)
        {
            _calendarEntryService = calendarEntryService;
            _roomService          = roomService;

            MessengerInstance.Register <CalendarEventUnselected>(this, HandleCalendarEventUnselected);
            MessengerInstance.Register <CalendarEventSelected>(this, HandleCalendarEventSelected);

            AvailableRooms      = new List <Room>();
            Calendar            = new Calendar(DateTime.Today);
            NextWeek            = new RelayCommand(ExecuteLoadNextCalendarWeek);
            PreviousWeek        = new RelayCommand(ExecuteLoadPreviousCalendarWeek);
            CancelCalendarEntry = new RelayCommand(ExecuteCancelCalendarEntry);
        }
Ejemplo n.º 5
0
        public AppointmentScheduleViewModel(ICalendarEntryService calendarEntryService, IAnamnesisService anamnesisService)
        {
            _calendarEntryService = calendarEntryService;
            _anamnesisService     = anamnesisService;

            MessengerInstance.Register <CalendarEventUnselected>(this, HandleCalendarEventUnselected);
            MessengerInstance.Register <CalendarEventSelected>(this, HandleCalendarEventSelected);

            Calendar     = new Calendar(DateTime.Today);
            Anamnesis    = new ObservableCollection <Entry>();
            NextWeek     = new RelayCommand(ExecuteLoadNextCalendarWeek);
            PreviousWeek = new RelayCommand(ExecuteLoadPreviousCalendarWeek);
            SaveEntry    = new RelayCommand(ExecuteSaveEntry);
        }
Ejemplo n.º 6
0
        public AppointmentsViewModel(ICalendarEntryService calendarEntryService, IAppointmentService appointmentService, IDoctorService doctorService)
        {
            _calendarEntryService = calendarEntryService;
            _doctorService        = doctorService;
            _appointmentService   = appointmentService;

            Priorities = Enum.GetValues(typeof(AppointmentPriority)).Cast <AppointmentPriority>();

            MessengerInstance.Register <CalendarEventUnselected>(this, HandleCalendarEventUnselected);
            MessengerInstance.Register <CalendarEventSelected>(this, HandleCalendarEventSelected);

            Calendar           = new Calendar(DateTime.Now);
            PreviousWeek       = new RelayCommand(ExecuteLoadPreviousCalendarWeek);
            NextWeek           = new RelayCommand(ExecuteLoadNextCalendarWeek);
            RequestAppointment = new RelayCommand(ExecuteRequestAppointment);
        }
        public RenovationMenuViewModel(ICalendarEntryService calendarEntryService, IRenovationService renovationService, IRoomService roomService,
                                       IEquipmentTypeService equipmentTypeService, IEquipmentItemService equipmentItemService)
        {
            _calendarEntryService = calendarEntryService;
            _renovationService    = renovationService;
            _roomService          = roomService;
            _equipmentItemService = equipmentItemService;
            _equipmentTypeService = equipmentTypeService;

            Calendar = new Calendar(DateTime.Today);

            NextWeek                    = new RelayCommand(ExecuteLoadNextCalendarWeek);
            PreviousWeek                = new RelayCommand(ExecuteLoadPreviousCalendarWeek);
            AddEquipmentItemToRoom      = new RelayCommand(ExecuteAddEquipmentItemToRoom);
            RemoveEquipmentItemFromRoom = new RelayCommand(ExecuteRemoveEquipmentItemFromRoom);
            LoadRoomsAvailableToJoinTo  = new RelayCommand(ExecuteLoadRoomsAvailableToJoinTo);
            ScheduleRenovation          = new RelayCommand(ExecuteScheduleRenovation);
        }
        public AppointmentCreateViewModel(IPatientService patientService, IRoomService roomService, ICalendarEntryService calendarEntryService, IDoctorService doctorService)
        {
            _patientService       = patientService;
            _roomService          = roomService;
            _calendarEntryService = calendarEntryService;
            _doctorService        = doctorService;

            AvailableRooms       = new ObservableCollection <Room>();
            AllPatients          = new ObservableCollection <Patient>();
            AvailableSpecialists = new ObservableCollection <Doctor>();

            Calendar            = new Calendar(DateTime.Today);
            ScheduleAppointment = new RelayCommand(ExecuteScheduleAppointment);
            NextWeek            = new RelayCommand(ExecuteLoadNextCalendarWeek);
            PreviousWeek        = new RelayCommand(ExecuteLoadPreviousCalendarWeek);

            MaterialDesignMessageQueue = new SnackbarMessageQueue(TimeSpan.FromSeconds(4))
            {
                IgnoreDuplicate = true
            };
        }
 public CalendarEntriesController(ICalendarEntryService calendarEntryService) =>
 this.calendarEntryService = calendarEntryService;