コード例 #1
0
        public RegisterPageViewModel()
        {
            _deviceActionService  = ServiceContainer.Resolve <IDeviceActionService>("deviceActionService");
            _apiService           = ServiceContainer.Resolve <IApiService>("apiService");
            _cryptoService        = ServiceContainer.Resolve <ICryptoService>("cryptoService");
            _platformUtilsService = ServiceContainer.Resolve <IPlatformUtilsService>("platformUtilsService");

            PageTitle                    = AppResources.CreateAccount;
            TogglePasswordCommand        = new Command(TogglePassword);
            ToggleConfirmPasswordCommand = new Command(ToggleConfirmPassword);
            SubmitCommand                = new Command(async() => await SubmitAsync());
            ShowTerms                    = !_platformUtilsService.IsSelfHost();
        }