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

Inheritance: System.Web.UI.WebControls.CompositeControl, IRockControl
显示文件 Open project: NewSpring/Rock

Private Properties

Property Type Description
CropImage Stream
RegisterStartupScript void

Public Methods

Method 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.

Protected Methods

Method 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

Method Description
CropImage ( Stream bitmapContent, string mimeType ) : Stream

Crops the image.

RegisterStartupScript ( ) : void

Registers the startup script.

Method Details

CreateChildControls() protected method

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
return void

ImageEditor() public method

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

OnLoad() protected method

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

RenderBaseControl() public method

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.
return void

RenderControl() public method

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.
return void

_lbShowModal_Click() protected method

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.
return void

_lbUploadImage_Click() protected method

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.
return void

_mdImageDialog_SaveClick() protected method

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.
return void