public PinViewModel(INavigationService navigationService,
                            ThemeSwitcher themeSwitcher,
                            ICommandResolver commandResolver)
            : base(navigationService)
        {
            _pinBuilder    = new StringBuilder();
            _themeSwitcher = themeSwitcher;
            Message        = Resmgr.Value.GetString(ConstantsHelper.EnterPin, CultureInfo.CurrentCulture);

            DeleteNumberCommand = commandResolver.CommandWithoutLock(DeletePinNumber);
            PinCommand          = commandResolver.AsyncCommandWithoutLock <string>(CheckPinAsync);

            InitializeImagesForButtons();
        }
        public PinViewModel(INavigationService navigationService,
                            ThemeSwitcher themeSwitcher,
                            ICommandResolver commandResolver)
            : base(navigationService)
        {
            _pinBuilder    = new StringBuilder();
            _themeSwitcher = themeSwitcher;
            Message        = Resmgr.Value.GetString(ConstantsHelper.EnterPin, CultureInfo.CurrentCulture);

            DeleteNumberCommand = commandResolver.CommandWithoutLock(DeletePinNumber);
            PinCommand          = commandResolver.AsyncCommandWithoutLock <string>(CheckPinAsync);

            InitializeImagesForButtons();

            bool.TryParse(Settings.UsePinBackground, out bool shouldUsePinBackground);
            UsePinPageBackground = shouldUsePinBackground;

            if (UsePinPageBackground)
            {
                PinBackgroundImagePath = Settings.PinBackground;
            }
        }