public void Register(string Username, string Password) { if (CanRegister) { bool Success = _Register(Username, Password); UpdateStats(); RegisterFinished?.Invoke(this, new GenericEventArgs { Success = Success }); } else { callError("Registering not allowed!", false, ErrorType.NotImplemented); } }
protected void callRegisterFinished(bool Success) { RegisterFinished?.Invoke(this, new GenericEventArgs { Success = Success }); }