public NicoAccountIntroductionPageViewModel( NiconicoSession niconicoSession, Commands.GoNextIntroductionPageCommand goNextIntroduction ) { NiconicoSession = niconicoSession; GoNextIntroduction = goNextIntroduction; IsLoggedIn = NiconicoSession.ObserveProperty(x => x.IsLoggedIn) .ToReadOnlyReactiveProperty(); }
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); }
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); }
public EpilogueIntroductionPageViewModel(Commands.GoNextIntroductionPageCommand goNext) { GoNext = goNext; }