C# Class JordanRift.Grassroots.Framework.Helpers.UIHelpers

Show file Open project: JordanRift/Grassroots

Public Properties

Property Type Description
CauseTemplateDictionary string>.IDictionary
CheckTypeDictionary string>.IDictionary
ExpMonthDictionary string>.IDictionary
ExpYearDictionary string>.IDictionary
GenderDictionary string>.IDictionary
MaritalStatusDictionary string>.IDictionary
PaymentTypeDictionary string>.IDictionary
RoleDictionary string>.IDictionary
StateDictionary string>.IDictionary

Public Methods

Method Description
Cast ( this collection ) : List
EnumToDictionary ( this type ) : string>.IDictionary

Cool little method from http://guyellisrocks.com/coding/asp-net-mvc-dropdownlist-from-enum/ Converts an enum type to an IDictionary<int,string> Although this will appear as an extension method on all type objects it will throw an exception on all types except enum

GetRoleSelectList ( int id ) : System.Web.Mvc.SelectList

Method Details

Cast() public static method

public static Cast ( this collection ) : List
collection this
return List

EnumToDictionary() public static method

Cool little method from http://guyellisrocks.com/coding/asp-net-mvc-dropdownlist-from-enum/ Converts an enum type to an IDictionary<int,string> Although this will appear as an extension method on all type objects it will throw an exception on all types except enum
public static EnumToDictionary ( this type ) : string>.IDictionary
type this
return string>.IDictionary

GetRoleSelectList() public static method

public static GetRoleSelectList ( int id ) : System.Web.Mvc.SelectList
id int
return System.Web.Mvc.SelectList

Property Details

CauseTemplateDictionary public static property

public static IDictionary CauseTemplateDictionary
return string>.IDictionary

CheckTypeDictionary public static property

public static IDictionary CheckTypeDictionary
return string>.IDictionary

ExpMonthDictionary public static property

public static IDictionary ExpMonthDictionary
return string>.IDictionary

ExpYearDictionary public static property

public static IDictionary ExpYearDictionary
return string>.IDictionary

GenderDictionary public static property

public static IDictionary GenderDictionary
return string>.IDictionary

MaritalStatusDictionary public static property

public static IDictionary MaritalStatusDictionary
return string>.IDictionary

PaymentTypeDictionary public static property

public static IDictionary PaymentTypeDictionary
return string>.IDictionary

RoleDictionary public static property

public static IDictionary RoleDictionary
return string>.IDictionary

StateDictionary public static property

public static IDictionary StateDictionary
return string>.IDictionary