internal void OnLoginatempt(ClientLoginAttemtEventArgs e) { if (LoginAtempt != null) { LoginAtempt.Invoke(this, e); } }
private void Button_Click(object sender, RoutedEventArgs e) { ErrorStackPanel.Children.Clear(); Login = TextLogin.Text; Password = PasswordBox.Password; LoginAtempt?.Invoke(this, new LoginEventArgs(Login, Password)); }