AdventureWorks.UILogic.ViewModels.SignOutFlyoutViewModel.SignOutFlyoutViewModel C# (CSharp) 메소드

SignOutFlyoutViewModel() 공개 메소드

public SignOutFlyoutViewModel ( IAccountService accountService, INavigationService navigationService ) : AdventureWorks.UILogic.Models
accountService IAccountService
navigationService INavigationService
리턴 AdventureWorks.UILogic.Models
        public SignOutFlyoutViewModel(IAccountService accountService, INavigationService navigationService)
        {
            _accountService = accountService;
            _navigationService = navigationService;
            if (_accountService != null)
            {
                _userInfo = _accountService.SignedInUser;
            }

            if (_userInfo != null)
            {
                UserName = _userInfo.UserName;
            }

            SignOutCommand = new DelegateCommand(SignOut, CanSignOut);
        }