Class ListHelper
Helper methods for the different list. This includes methods for interpreting id, type and extra info for the different lists
Inherited Members
Namespace: SuperOffice.CRM.Lists
Assembly: SoCore.dll
Syntax
public class ListHelper
Constructors
ListHelper()
Declaration
public ListHelper()
Methods
GetFlattenedList(ISoList)
Declaration
public static IEnumerable<ISoListItem> GetFlattenedList(ISoList listToFlatten)
Parameters
Type | Name | Description |
---|---|---|
ISoList | listToFlatten |
Returns
Type | Description |
---|---|
IEnumerable<ISoListItem> |
GetVisibleForListId(Visibility, Int32)
Calculates the Visible For list id from the visible for id and visibility type
Declaration
public static int GetVisibleForListId(Visibility visibility, int id)
Parameters
Type | Name | Description |
---|---|---|
Visibility | visibility | Visibility |
Int32 | id | Id of the visible for item |
Returns
Type | Description |
---|---|
Int32 | Visible For list id |
GetVisibleForType(Int32)
Returns the VisibleFor type (Visibility) based on the list id's sign and value.
Declaration
public static Visibility GetVisibleForType(int listId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | listId | The id of the Visible for item in the VisibleFor list |
Returns
Type | Description |
---|---|
Visibility | The Visibility the list id represents |
Extension Methods
EnumUtil.MapEnums<From, To>(From)