예제 #1
0
        public AccountViewModel(INavigationService navigationService, IVidMeClient vidMeClient, AvatarViewModel avatar)
        {
            Avatar             = avatar;
            _navigationService = navigationService;
            _vidMeClient       = vidMeClient;

            if (!IsInDesignMode)
            {
                AuthenticationService.Current.UserSignedIn  += UserStateChanged;
                AuthenticationService.Current.UserSignedOut += UserStateChanged;
                Reset();
            }
        }
예제 #2
0
 public EditProfileViewModel(IVidMeClient vidMeClient, AvatarViewModel avatarViewModel, IToastService toastService)
 {
     Avatar        = avatarViewModel;
     _vidMeClient  = vidMeClient;
     _toastService = toastService;
 }