internal static DeleteAdminUserResult AdminUser_OnRemove(string id) { DeleteAdminUserResult result = ServerProxy.DeleteAdminUser(id); switch (result) { case DeleteAdminUserResult.Success: AdminUser c = adminUserList.Find(t => t.ID == id); if (c != null) { adminUserList.Remove(c); } break; case DeleteAdminUserResult.Error: break; default: break; } return(result); }