Exemplo n.º 1
0
 public NicoAccountIntroductionPageViewModel(
     NiconicoSession niconicoSession,
     Commands.GoNextIntroductionPageCommand goNextIntroduction
     )
 {
     NiconicoSession    = niconicoSession;
     GoNextIntroduction = goNextIntroduction;
     IsLoggedIn         = NiconicoSession.ObserveProperty(x => x.IsLoggedIn)
                          .ToReadOnlyReactiveProperty();
 }
Exemplo n.º 2
0
        public override void OnNavigatedTo(NavigatedToEventArgs e, Dictionary <string, object> viewModelState)
        {
            var goNextCommand = new Commands.GoNextIntroductionPageCommand() as System.Windows.Input.ICommand;

            if (goNextCommand != null)
            {
                goNextCommand.Execute(null);
            }

            base.OnNavigatedTo(e, viewModelState);
        }
Exemplo n.º 3
0
        public override void OnNavigatedTo(NavigatedToEventArgs e, Dictionary <string, object> viewModelState)
        {
            disposables?.Dispose();
            disposables = new CompositeDisposable();

            IsLoggedIn.Where(x => x)
            .Take(1)
            .Delay(TimeSpan.FromSeconds(2.5))     /* ここでログイン確認後の遷移前タメ時間を調整 */
            .Subscribe(_ =>
            {
                var goNextCommand = new Commands.GoNextIntroductionPageCommand() as ICommand;
                if (goNextCommand != null)
                {
                    goNextCommand.Execute(null);
                }
            });

            _HohoemaApp.SignInWithPrimaryAccount().ConfigureAwait(false);

            base.OnNavigatedTo(e, viewModelState);
        }
Exemplo n.º 4
0
 public EpilogueIntroductionPageViewModel(Commands.GoNextIntroductionPageCommand goNext)
 {
     GoNext = goNext;
 }