Beispiel #1
0
        /// <summary>
        ///     ctor().
        /// </summary>
        public SettingsViewModel()
        {
            IsVisibleAmount = BaseSingleton <DashboardHelper> .Instance.HasSideMenuAmount;

            DisplaySearchPageCommand = new Command(() => BaseSingleton <ViewSwitchingLogic> .Instance.NavigateTo(ViewType.SearchPage));

            SetupDashboardPageCommand = new Command(() => BaseSingleton <ViewSwitchingLogic> .Instance.NavigateTo(ViewType.SetupDashboardPage));

            CurrencyItems = GetCurrencyItems();

            SelectedCurrencyItem = CurrencyItems.FirstOrDefault();
        }
Beispiel #2
0
        /// <summary>
        ///     ctor().
        /// </summary>
        public SettingsViewModel()
        {
            HasPasscode = DependencyService.Get <ISQLiteService>().IsPasscodeExist();

            ImportedView = BaseSingleton <ViewSwitchingLogic> .Instance.GetViewByType(ViewType.PasscodeView);

            IsVisibleAmount = BaseSingleton <DashboardHelper> .Instance.HasSideMenuAmount;

            DisplaySearchPageCommand = new Command(() => BaseSingleton <ViewSwitchingLogic> .Instance.NavigateTo(ViewType.SearchPage));

            SetupDashboardPageCommand = new Command(() => BaseSingleton <ViewSwitchingLogic> .Instance.NavigateTo(ViewType.SetupDashboardPage));

            CurrencyItems = GetCurrencyItems();

            SelectedCurrencyItem = CurrencyItems.FirstOrDefault();

            MessagingCenter.Subscribe <string>(this, "exitView", AutoHideView);

            MessagingCenter.Subscribe <ResponseUnchekPasscode>(this, "disablePasscode", DisablePasscode);
        }