Exemple #1
0
 private void AccountServices_EditAccountReport(object sender, EditAccountReportEventArgs e)
 {
     if (e.IsApproved)
     {
         Invoke((MethodInvoker) delegate
         {
             Me = e.EditedUser;
             EditAccountDetails(Me);
         });
     }
     else
     {
         AccountControl.TellError("Username already taken !");
     }
 }
Exemple #2
0
 private void AccountServices_EditAccountReport(object sender, EditAccountReportEventArgs e)
 {
     if (e.IsApproved)
     {
         if (LoginServices.Instance.ModifyUserOfServer(e.EditedUser, e.ServerIdentity))
         {
             MessageBox.Show($"User modified for {e.ServerIdentity.ToString()} to {e.EditedUser.Name} with {e.EditedUser.Rank.ToString()}");
             AccountControl.ModifyUser(e.EditedUser, e.ServerIdentity);
         }
     }
     else
     {
         AccountControl.TellError("Username already taken !");
     }
 }