AdventureWorks.UILogic.ViewModels.SignInUserControlViewModel.SignInUserControlViewModel C# (CSharp) Метод

SignInUserControlViewModel() публичный Метод

public SignInUserControlViewModel ( IAccountService accountService, IAlertMessageService alertMessageService, IResourceLoader resourceLoader ) : AdventureWorks.UILogic.Services
accountService IAccountService
alertMessageService IAlertMessageService
resourceLoader IResourceLoader
Результат AdventureWorks.UILogic.Services
        public SignInUserControlViewModel(IAccountService accountService, IAlertMessageService alertMessageService, IResourceLoader resourceLoader)
        {
            _accountService = accountService;
            _alertMessageService = alertMessageService;
            _resourceLoader = resourceLoader;

            SignInCommand = DelegateCommand.FromAsyncHandler(SignInAsync, CanSignIn);
            GoBackCommand = new DelegateCommand(Close);

            if (_accountService.SignedInUser != null)
            {
                _userName = _accountService.SignedInUser.UserName;
                IsNewSignIn = false;
            }
            else
            {
                IsNewSignIn = true;
            }
        }