コード例 #1
0
        public override void SetState(ConfirmVoteState state)
        {
            _logger.Trace(LogStatements.ViewModelReceivedStateLog(state.GetLogString()));
            base.SetState(state);

            RaisePropertyChanged(() => Title);
            RaisePropertyChanged(() => Description);
            RaisePropertyChanged(() => Choice);
        }
コード例 #2
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            _logger.Trace(LogStatements.NavigatedLog(LogStatements.NavigatedToAction, "SummaryPage"));

            var viewModel = ServiceLocator.Current.GetInstance <SummaryPageViewModel>();

            DataContext = viewModel;

            viewModel.SetState((SummaryState)e.Parameter);

            base.OnNavigatedTo(e);
        }
コード例 #3
0
 protected override void OnNavigatedFrom(NavigationEventArgs e)
 {
     _logger.Trace(LogStatements.NavigatedLog(LogStatements.NavigatedFromAction, "SummaryPage"));
     base.OnNavigatedFrom(e);
 }
コード例 #4
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     _logger.Trace(LogStatements.NavigatedLog(LogStatements.NavigatedToAction, "MainPage"));
     base.OnNavigatedTo(e);
 }
コード例 #5
0
        public virtual void SetState(T state)
        {
            _logger?.Trace(LogStatements.ViewModelReceivedStateLog(state.GetLogString()));

            _state = state;
        }