예제 #1
0
        public async Task Initialization()
        {
            IsProgressShow = true;
            RaisePropertyChanged(nameof(IsProgressShow));

            try
            {
                await _model.UpdateUser(GetCancellationToken());
            }
            catch
            {
                _toastService.ShowNotification("SoS", _localizationService.GetTranslateByKey(Localization.OopsError));
            }

            Email    = _model.Email;
            Currency = _model.Currency;
            UserName = _model.Login;

            RaisePropertyChanged(nameof(Email));
            RaisePropertyChanged(nameof(Currency));
            RaisePropertyChanged(nameof(UserName));
            RaisePropertyChanged(nameof(IsDarkModeEnabled));

            IsProgressShow = false;
            RaisePropertyChanged(nameof(IsProgressShow));
        }