}                                     // The user model for the system
        #endregion

        #region Constructor

        public WelcomeComponentViewModel(IEventAggregator ea, IClientHttpActions clientHttpActions, IViewsDialog viewsDialog)
        {
            _ea         = ea;
            httpActions = clientHttpActions;
            views       = viewsDialog;

            Customer = new Patient();
            Message  = @"Welcome to the clinic.
Please swipe your card to continue...";

            //Mock Data for the application
            MockUsers = new List <ulong>()
            {
                200, 300, 400, 500, 600, 700, 800, 900, 1000
            };                                                                              // simulates card swipe information
            SelectedUser = 0;
        }
        public SelectQueueComponentViewModel(IEventAggregator ea, IClientHttpActions clientHttpActions, IViewsDialog viewsDialog)
        {
            // Set depandancies
            clientHttp      = clientHttpActions;
            eventAggregator = ea;
            views           = viewsDialog;

            // Set properties and register events
            CurrentDay         = DateTime.Now.DayOfWeek;
            PharmacyQueueValid = false;
            NurseQueueValid    = false;
            eventAggregator.GetEvent <SendPatientEvent>().Subscribe(LoadModel);
            GetScheduleAsync();

            // Timer Setup
            timer          = new DispatcherTimer();
            timer.Interval = TimeSpan.FromMinutes(1);
            timer.Tick    += CheckSchedules;

            NurseQueueValid    = CheckTime(NurseScheduleModel);
            PharmacyQueueValid = CheckTime(PharmacyScheduleModel);
        }
 public void Init()
 {
     httpService     = new ClientHttpActionsMockup();
     dialogService   = new ViewDialogMockup();
     eventAggregator = ApplicationServiceMockup.Instance.EventAggregator;
 }
示例#4
0
 public void Init()
 {
     httpService   = new ClientHttpActionsMockup();
     dialogService = new ViewDialogMockup();
 }