C# Класс SobekCM.Library.MySobekViewer.Page_Image_Upload_MySobekViewer

Наследование: abstract_MySobekViewer
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

Add_Controls() публичный Метод

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
Результат void

Page_Image_Upload_MySobekViewer() публичный Метод

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
Результат System

ScaleImage() публичный статический Метод

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
Результат System.Drawing.Image

Write_HTML() публичный Метод

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
Результат void

Write_ItemNavForm_Closing() публичный Метод

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
Результат void