コード例 #1
0
        public async Task HandleAsync(SwitchToLogInEvent message, CancellationToken cancellationToken)
        {
            CheckInViewModel checkInVM = IoC.Get <CheckInViewModel>();

            checkInVM.Client = message.Client;
            checkInVM.Phone  = message.Phone;

            await ActivateItemAsync(checkInVM, cancellationToken);
        }
コード例 #2
0
 public ShellViewModel(CheckInViewModel checkInVM,
                       IEventAggregator events,
                       ILoggedInUser user,
                       IAPIHelper apiHelper)
 {
     _checkInVM = checkInVM;
     _events    = events;
     _user      = user;
     _apiHelper = apiHelper;
     _events.Subscribe(this);
     ActivateItem(IoC.Get <LoginViewModel>());
 }