예제 #1
0
        private async Task LoginAsync(string userName, string password)
        {
            var user = await _userService.LoginAsync(userName, password);

            if (user != null)
            {
                Success?.Invoke(this, user);
                DialogResult = DialogResult.OK;
                Close();
            }
            else
            {
                ErrorLabel.Visible = true;
            }
        }