C# Class SobekCM.Library.MySobekViewer.Page_Image_Upload_MySobekViewer

Inheritance: abstract_MySobekViewer
ファイルを表示 Open project: MarkVSullivan/SobekCM-Web-Application

Public Methods

Method Description
Add_Controls ( System.Web.UI.WebControls.PlaceHolder MainPlaceHolder, Custom_Tracer Tracer ) : void

Add controls directly to the form in the main control area placeholder

Page_Image_Upload_MySobekViewer ( RequestCache RequestSpecificValues ) : System

Constructor for a new instance of the Page_Image_Upload_MySobekViewer class

ScaleImage ( Image SourceImage, int MaxWidth, int MaxHeight ) : Image

Scales an existing SourceImage to a new max width / max height

Write_HTML ( TextWriter Output, Custom_Tracer Tracer ) : void

Add the HTML to be displayed in the main SobekCM viewer area

This adds the template HTML for step 2 and the congratulations text for step 4

Write_ItemNavForm_Closing ( TextWriter Output, Custom_Tracer Tracer ) : void

This is an opportunity to write HTML directly into the main form, without using the pop-up html form architecture

This text will appear within the ItemNavForm form tags

Private Methods

Method Description
SafeImageFromFile ( string FilePath, FileStream &ReuseStream ) : Image
add_upload_controls ( System.Web.UI.WebControls.PlaceHolder PlaceHolder, Custom_Tracer Tracer ) : void
complete_item_submission ( SobekCM_Item Item_To_Complete, Custom_Tracer Tracer ) : bool

Method Details

Add_Controls() public method

Add controls directly to the form in the main control area placeholder
public Add_Controls ( System.Web.UI.WebControls.PlaceHolder MainPlaceHolder, Custom_Tracer Tracer ) : void
MainPlaceHolder System.Web.UI.WebControls.PlaceHolder Main place holder to which all main controls are added
Tracer Custom_Tracer Trace object keeps a list of each method executed and important milestones in rendering
return void

Page_Image_Upload_MySobekViewer() public method

Constructor for a new instance of the Page_Image_Upload_MySobekViewer class
public Page_Image_Upload_MySobekViewer ( RequestCache RequestSpecificValues ) : System
RequestSpecificValues RequestCache All the necessary, non-global data specific to the current request
return System

ScaleImage() public static method

Scales an existing SourceImage to a new max width / max height
public static ScaleImage ( Image SourceImage, int MaxWidth, int MaxHeight ) : Image
SourceImage System.Drawing.Image Source image
MaxWidth int Maximum width for the new image
MaxHeight int Maximum height for the new image
return System.Drawing.Image

Write_HTML() public method

Add the HTML to be displayed in the main SobekCM viewer area
This adds the template HTML for step 2 and the congratulations text for step 4
public Write_HTML ( TextWriter Output, Custom_Tracer Tracer ) : void
Output System.IO.TextWriter Textwriter to write the HTML for this viewer
Tracer Custom_Tracer Trace object keeps a list of each method executed and important milestones in rendering
return void

Write_ItemNavForm_Closing() public method

This is an opportunity to write HTML directly into the main form, without using the pop-up html form architecture
This text will appear within the ItemNavForm form tags
public Write_ItemNavForm_Closing ( TextWriter Output, Custom_Tracer Tracer ) : void
Output System.IO.TextWriter Textwriter to write the pop-up form HTML for this viewer
Tracer Custom_Tracer Trace object keeps a list of each method executed and important milestones in rendering
return void