public SecurityQuestionPage(OnboardingViewModel ovm)
 {
     InitializeComponent();
     BindingContext = _vm = new SecurityQuestionViewModel(Navigation);
     Answer         = new List <QuestionAnswerModel>();
     _ovm           = ovm;
 }
Esempio n. 2
0
 public OnboardingController(IntPtr handle) : base(handle)
 {
     if (ViewModel == null)
     {
         ViewModel = new OnboardingViewModel();
     }
 }
 public UserInformationPage()
 {
     InitializeComponent();
     _vm            = new OnboardingViewModel(Navigation);
     BindingContext = _vm;
     GenderList();
 }
 public SetPassphraseView(Toplevel topLevel) : base(topLevel)
 {
     this.mainWindow          = (Window)topLevel;
     this.messageBoxService   = App.ServiceProvider.Get <IMessageBoxService>();
     this.onboardingViewModel = App.ServiceProvider.Get <OnboardingViewModel>();
     this.deviceVaultService  = App.ServiceProvider.Get <DeviceVaultService>();
     this.cancellation        = App.ServiceProvider.Get <ICancellation>();
 }
Esempio n. 5
0
        public void SkipCommand_navigates_to_the_login_view()
        {
            OnboardingViewModel viewModel = CreateOnboardingViewModel();

            viewModel.SkipCommand.Execute(null);

            _mockNavigationService.VerifyThatInsertAsRootWasCalled <LoginViewModel>();
        }
        public OnboardingPage(Action onLastPane_)
        {
            BindingContext = new OnboardingViewModel();

            OnLastPane = onLastPane_;

            InitializeComponent();
        }
Esempio n. 7
0
        private void OnRequestOnboardingPage(OnboardingViewModel viewModel)
        {
            var storyboard           = UIStoryboard.FromName("Onboarding", null);
            var navigationController = storyboard.InstantiateInitialViewController() as UINavigationController;
            var controller           = navigationController.TopViewController as OnboardingController;

            controller.ViewModel = viewModel;

            SetRootViewController(navigationController);
        }
Esempio n. 8
0
 public SetupView(Toplevel topLevel) : base(topLevel)
 {
     this.mainWindow              = (Window)topLevel;
     this.messageBoxService       = App.ServiceProvider.Get <IMessageBoxService>();
     this.onboardingViewModel     = App.ServiceProvider.Get <OnboardingViewModel>();
     this.stopwatch               = new Stopwatch();
     this.xdsSecService           = App.ServiceProvider.Get <IXDSSecService>();
     this.chatClientConfiguration = App.ServiceProvider.GetService <IChatClientConfiguration>();
     this.cancellation            = App.ServiceProvider.Get <ICancellation>();
 }
		void Awake()
		{
			model = GetComponent<OnboardingViewModel>();
			if (null == model)
			{
				throw new MissingComponentException();
			}

			if(null != model)
			{
				base.OnAwake();
			}
		}
Esempio n. 10
0
        void Awake()
        {
            model = GetComponent <OnboardingViewModel>();
            if (null == model)
            {
                throw new MissingComponentException();
            }

            if (null != model)
            {
                base.OnAwake();
            }
        }
Esempio n. 11
0
        public MainViewModel(
            UserAuth userAuth,
            IVpnManager vpnManager,
            IActiveUrls urls,
            IEventAggregator eventAggregator,
            AppExitHandler appExitHandler,
            IModals modals,
            IDialogs dialogs,
            IPopupWindows popups,
            MapViewModel mapViewModel,
            ConnectingViewModel connectingViewModel,
            OnboardingViewModel onboardingViewModel,
            FlashNotificationViewModel flashNotificationViewModel,
            TrayNotificationViewModel trayNotificationViewModel)
        {
            _eventAggregator = eventAggregator;
            _vpnManager      = vpnManager;
            _urls            = urls;
            _userAuth        = userAuth;
            _appExitHandler  = appExitHandler;
            _modals          = modals;
            _dialogs         = dialogs;
            _popups          = popups;

            Map               = mapViewModel;
            Connection        = connectingViewModel;
            Onboarding        = onboardingViewModel;
            TrayNotification  = trayNotificationViewModel;
            FlashNotification = flashNotificationViewModel;

            eventAggregator.Subscribe(this);

            AboutCommand          = new RelayCommand(AboutAction, CanClick);
            AccountCommand        = new RelayCommand(AccountAction, CanClick);
            ProfilesCommand       = new RelayCommand(ProfilesAction, CanClick);
            SettingsCommand       = new RelayCommand(SettingsAction, CanClick);
            HelpCommand           = new RelayCommand(HelpAction);
            ReportBugCommand      = new RelayCommand(ReportBugAction, CanClick);
            DeveloperToolsCommand = new RelayCommand(DeveloperToolsAction);
            LogoutCommand         = new RelayCommand(LogoutAction);
            ExitCommand           = new RelayCommand(ExitAction);

            SetDeveloperToolsVisibility();
        }
 public OnboardingPage()
 {
     InitializeComponent();
     BindingContext = vm = new OnboardingViewModel();
 }
Esempio n. 13
0
        public OtpVerification(OnboardingViewModel model)
        {
            _vm = model;

            InitializeComponent();
        }
Esempio n. 14
0
        public void OnboardingSteps_contains_items()
        {
            OnboardingViewModel viewModel = CreateOnboardingViewModel();

            viewModel.OnboardingSteps.Should().NotBeEmpty();
        }
 public AccountPinCreation(OnboardingViewModel model, List <QuestionAnswerModel> QandA)
 {
     _vm    = model;
     _qanda = QandA;
     InitializeComponent();
 }
Esempio n. 16
0
        private async void OnRequestOnboardingPage(OnboardingViewModel oVm)
        {
            _viewModel = oVm;
            AnimationInitUI();
            BindEvents();

            var mainAnimatorSet = new AnimatorSet();

            var appNameLayoutFinalTopSpace = TypedValue.ApplyDimension(ComplexUnitType.Dip, 55.0f, Application.Context.Resources.DisplayMetrics);

            var decelerateInterpolator = new DecelerateInterpolator(1.0f);

            var appNameLayoutAnimator = new ValueAnimator();

            appNameLayoutAnimator.SetDuration(750);
            appNameLayoutAnimator.SetInterpolator(decelerateInterpolator);
            appNameLayoutAnimator.SetFloatValues(_appNameLayout.GetY(), appNameLayoutFinalTopSpace);
            appNameLayoutAnimator.Update += (o, args) => { _appNameLayout.SetY((float)args.Animation.AnimatedValue); };

            var whatAccountsAnimator = new ValueAnimator();

            whatAccountsAnimator.SetDuration(750);
            whatAccountsAnimator.SetInterpolator(decelerateInterpolator);
            whatAccountsAnimator.SetFloatValues(0.0f, 1.0f);
            whatAccountsAnimator.Update += (o, args) => { _whatAccounts.Alpha = (float)args.Animation.AnimatedValue; };

            var appNameAnimationSet = new AnimatorSet();

            appNameAnimationSet.PlayTogether(appNameLayoutAnimator, whatAccountsAnimator);


            var socialButtonsAnimatorSet = new AnimatorSet();

            var overshootInterpolator = new OvershootInterpolator(3f);

            var facebookButtonAnimator = new ValueAnimator();

            facebookButtonAnimator.SetDuration(500);
            facebookButtonAnimator.SetInterpolator(overshootInterpolator);
            facebookButtonAnimator.SetFloatValues(_facebookButton.GetY() + _facebookButton.Height, _facebookButton.GetY());
            facebookButtonAnimator.Update += (o, args) =>
            {
                _facebookButton.SetY((float)args.Animation.AnimatedValue);
                _facebookButton.Alpha = args.Animation.AnimatedFraction;
            };

            var twitterButtonAnimator = new ValueAnimator();

            twitterButtonAnimator.SetDuration(500);
            twitterButtonAnimator.SetInterpolator(overshootInterpolator);
            twitterButtonAnimator.SetFloatValues(_facebookButton.GetY() + _facebookButton.Height, _facebookButton.GetY());
            twitterButtonAnimator.Update += (o, args) =>
            {
                _twitterButton.SetY((float)args.Animation.AnimatedValue);
                _twitterButton.Alpha = args.Animation.AnimatedFraction;
            };
            socialButtonsAnimatorSet.PlaySequentially(facebookButtonAnimator, twitterButtonAnimator);
            socialButtonsAnimatorSet.StartDelay = 500;

            var letsGoButtonAnimator = new ValueAnimator();

            letsGoButtonAnimator.SetDuration(500);
            letsGoButtonAnimator.SetInterpolator(decelerateInterpolator);
            letsGoButtonAnimator.SetFloatValues(0.0f, 1.0f);
            letsGoButtonAnimator.Update += (sender, args) =>
            {
                _goButton.Alpha = (float)args.Animation.AnimatedValue;
            };

            mainAnimatorSet.PlaySequentially(appNameAnimationSet, socialButtonsAnimatorSet, letsGoButtonAnimator);

            await _viewModel.DidLoad();

            await Task.Delay(2000);

            mainAnimatorSet.Start();
            await _viewModel.DidAppear();
        }