Exemplo n.º 1
0
    /// <summary>
    /// Deletes the user (soft delete)
    /// </summary>
    /// <returns>true if deleting the user was successful, otherwise false</returns>
    public bool DeleteUser()
    {
        if (UserList.Count == 1 && CurrentPage != 1)
        {
            CurrentPage--;
        }

        if (Enjin.DeleteUser(UserList[SelectedIndex].id))
        {
            SelectedIndex = 0;
            CurrentPage   = 1;
            ResetTeamList();
            EnjinEditor.ExecuteMethod(EnjinEditor.CallMethod.RELOADIDENTITIES);
            return(true);
        }

        return(false);
    }