C# Class MichaelJBaird.Themes.JQMobile.Controls.CommentView

ファイルを表示 Open project: rasmuskl/ReSharperCourse

Public Methods

Method Description
BindCountries ( ) : void

Binds the country dropdown list with countries retrieved from the .NET Framework.

CommentView ( ) : System

Initializes a new instance of the CommentView class.

GetCallbackResult ( ) : string

Returns the results of a callback event that targets a control.

RaiseCallbackEvent ( string eventArgument ) : void

Processes a callback event that targets a control.

ResolveRegion ( ) : RegionInfo

Resolves the region based on the browser language.

Protected Methods

Method Description
AdminLink ( string id ) : string

Displays a delete link to visitors that is authenticated using the default membership provider.

BBCodes ( ) : string

Displays BBCodes dynamically loaded from settings.

OnLoad ( EventArgs e ) : void

Raises the E:System.Web.UI.Control.Load event.

Private Methods

Method Description
AddNestedComments ( string path, IEnumerable nestedComments, Control commentsPlaceHolder, bool canViewUnpublishedPosts ) : void

Adds the nested comments.

ApproveAllComments ( ) : void

Approves all comments.

ApproveComment ( ) : void

Approves the comment.

CollectCommentToDelete ( Comment comment, List commentsToDelete ) : void

Collects the comment to delete.

DeleteComment ( ) : void

Deletes the comment.

DeleteCommentAndChildren ( ) : void

Deletes the comment and children.

EnableCaptchas ( ) : void

Enables the captchas.

EnableRecaptcha ( ) : void

Enables the recaptcha.

EnableSimpleCaptcha ( ) : void

Enables the simple captcha.

GetCookie ( ) : void

Gets the cookie with visitor information if any is set. Then fills the contact information fields in the form.

SetCookie ( string name, string email, string website, string country ) : void

Sets a cookie with the entered visitor information so it can be prefilled on next visit.

SetFlagImageUrl ( ) : void

Sets the flag image URL.

Method Details

AdminLink() protected method

Displays a delete link to visitors that is authenticated using the default membership provider.
protected AdminLink ( string id ) : string
id string /// The id of the comment. ///
return string

BBCodes() protected method

Displays BBCodes dynamically loaded from settings.
protected BBCodes ( ) : string
return string

BindCountries() public method

Binds the country dropdown list with countries retrieved from the .NET Framework.
public BindCountries ( ) : void
return void

CommentView() public method

Initializes a new instance of the CommentView class.
public CommentView ( ) : System
return System

GetCallbackResult() public method

Returns the results of a callback event that targets a control.
public GetCallbackResult ( ) : string
return string

OnLoad() protected method

Raises the E:System.Web.UI.Control.Load event.
protected OnLoad ( EventArgs e ) : void
e EventArgs /// The object that contains the event data. ///
return void

RaiseCallbackEvent() public method

Processes a callback event that targets a control.
public RaiseCallbackEvent ( string eventArgument ) : void
eventArgument string /// A string that represents an event argument to pass to the event handler. ///
return void

ResolveRegion() public static method

Resolves the region based on the browser language.
public static ResolveRegion ( ) : RegionInfo
return RegionInfo