C# Class DotNetNuke.Modules.Admin.Security.MemberServices

The MemberServices UserModuleBase is used to manage a User's services
Inheritance: DotNetNuke.Entities.Modules.UserModuleBase
Exibir arquivo Open project: ucdavis/caesdodnn Class Usage Examples

Public Methods

Method Description
DataBind ( ) : void

DataBind binds the data to the controls

OnSubscriptionUpdated ( SubscriptionUpdatedEventArgs e ) : void

Raises the SubscriptionUpdated Event

Protected Methods

Method Description
FormatExpiryDate ( System.DateTime expiryDate ) : string

FormatExpiryDate formats the expiry date and filters out null-values

FormatPrice ( float price, int period, string frequency ) : string

FormatPrice formats the Fee amount and filters out null-values

FormatTrial ( float price, int period, string frequency ) : string

FormatTrial formats the Trial Fee amount and filters out null-values

FormatURL ( ) : string

FormatURL correctly formats a URL

OnLoad ( EventArgs e ) : void

Page_Load runs when the control is loaded

ServiceText ( bool subscribed, System.DateTime expiryDate ) : string

ServiceText gets the Service Text (Cancel or Subscribe)

ShowSubscribe ( int roleID ) : bool
ShowTrial ( int roleID ) : bool
grdServices_ItemCommand ( object source, DataGridCommandEventArgs e ) : void

Private Methods

Method Description
FormatPrice ( float price ) : string

FormatPrice formats the Fee amount and filters out null-values

Subscribe ( int roleID, bool cancel ) : void
UseTrial ( int roleID ) : void
cmdRSVP_Click ( object sender, EventArgs e ) : void

cmdRSVP_Click runs when the Subscribe to RSVP Code Roles Button is clicked

Method Details

DataBind() public method

DataBind binds the data to the controls
public DataBind ( ) : void
return void

FormatExpiryDate() protected method

FormatExpiryDate formats the expiry date and filters out null-values
protected FormatExpiryDate ( System.DateTime expiryDate ) : string
expiryDate System.DateTime The date to format
return string

FormatPrice() protected method

FormatPrice formats the Fee amount and filters out null-values
protected FormatPrice ( float price, int period, string frequency ) : string
price float The price to format
period int
frequency string
return string

FormatTrial() protected method

FormatTrial formats the Trial Fee amount and filters out null-values
protected FormatTrial ( float price, int period, string frequency ) : string
price float The price to format
period int
frequency string
return string

FormatURL() protected method

FormatURL correctly formats a URL
protected FormatURL ( ) : string
return string

OnLoad() protected method

Page_Load runs when the control is loaded
protected OnLoad ( EventArgs e ) : void
e System.EventArgs
return void

OnSubscriptionUpdated() public method

Raises the SubscriptionUpdated Event
public OnSubscriptionUpdated ( SubscriptionUpdatedEventArgs e ) : void
e SubscriptionUpdatedEventArgs
return void

ServiceText() protected method

ServiceText gets the Service Text (Cancel or Subscribe)
protected ServiceText ( bool subscribed, System.DateTime expiryDate ) : string
subscribed bool
expiryDate System.DateTime
return string

ShowSubscribe() protected method

protected ShowSubscribe ( int roleID ) : bool
roleID int
return bool

ShowTrial() protected method

protected ShowTrial ( int roleID ) : bool
roleID int
return bool

grdServices_ItemCommand() protected method

protected grdServices_ItemCommand ( object source, DataGridCommandEventArgs e ) : void
source object
e DataGridCommandEventArgs
return void