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;
}
}