C# Class Rock.Web.UI.Controls.ImageEditor

Inheritance: System.Web.UI.WebControls.CompositeControl, IRockControl
Afficher le fichier Open project: NewSpring/Rock

Private Properties

Свойство Type Description
CropImage Stream
RegisterStartupScript void

Méthodes publiques

Méthode Description
ImageEditor ( ) : System

Initializes a new instance of the ImageEditor class.

RenderBaseControl ( System.Web.UI.HtmlTextWriter writer ) : void

This is where you implment the simple aspects of rendering your control. The rest will be handled by calling RenderControlHelper's RenderControl() method.

RenderControl ( System.Web.UI.HtmlTextWriter writer ) : void

Outputs server control content to a provided T:System.Web.UI.HtmlTextWriter object and stores tracing information about the control if tracing is enabled.

Méthodes protégées

Méthode Description
CreateChildControls ( ) : void

Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.

OnLoad ( EventArgs e ) : void

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

_lbShowModal_Click ( object sender, EventArgs e ) : void

Handles the Click event of the _lbShowModal control.

_lbUploadImage_Click ( object sender, EventArgs e ) : void

Handles the Click event of the _lbUploadImage control.

_mdImageDialog_SaveClick ( object sender, EventArgs e ) : void

Handles the SaveClick event of the _mdImageDialog control.

Private Methods

Méthode Description
CropImage ( Stream bitmapContent, string mimeType ) : Stream

Crops the image.

RegisterStartupScript ( ) : void

Registers the startup script.

Method Details

CreateChildControls() protected méthode

Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.
protected CreateChildControls ( ) : void
Résultat void

ImageEditor() public méthode

Initializes a new instance of the ImageEditor class.
public ImageEditor ( ) : System
Résultat System

OnLoad() protected méthode

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

RenderBaseControl() public méthode

This is where you implment the simple aspects of rendering your control. The rest will be handled by calling RenderControlHelper's RenderControl() method.
public RenderBaseControl ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter The writer.
Résultat void

RenderControl() public méthode

Outputs server control content to a provided T:System.Web.UI.HtmlTextWriter object and stores tracing information about the control if tracing is enabled.
public RenderControl ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter The object that receives the control content.
Résultat void

_lbShowModal_Click() protected méthode

Handles the Click event of the _lbShowModal control.
protected _lbShowModal_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
Résultat void

_lbUploadImage_Click() protected méthode

Handles the Click event of the _lbUploadImage control.
protected _lbUploadImage_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
Résultat void

_mdImageDialog_SaveClick() protected méthode

Handles the SaveClick event of the _mdImageDialog control.
protected _mdImageDialog_SaveClick ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
Résultat void