Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
 protected void callRegisterFinished(bool Success)
 {
     RegisterFinished?.Invoke(this, new GenericEventArgs {
         Success = Success
     });
 }