C# Class LayoutFarm.Demo.DemoForm

Mostra file Open project: prepare/HTML-Renderer Class Usage Examples

Public Methods

Method Description
DemoForm ( PixelFarm p ) : System

Init.

LoadDemo ( DemoBase demoBase ) : void
PrepareSamples ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
GetBuiltInStyleSheet ( string src ) : string

Get stylesheet by given key.

HandleImageRequest ( object sender, ImageRequestEventArgs e ) : void

On image load in renderer set the image by event async.

HandleStylesheetRequest ( object sender, TextRequestEventArgs e ) : void

Handle stylesheet resolve.

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

LoadCustomFonts ( ) : void

Load custom fonts to be used by renderer htmls

LoadSamples ( ) : void

Loads the tree of document samples

OnHtmlEditorTextChanged ( object sender, EventArgs e ) : void

On text change in the html editor update

OnOpenExternalViewButtonClick ( object sender, EventArgs e ) : void

Open the current html is external process - the default user browser.

OnReloadColorsLinkClicked ( object sender, LinkLabelLinkClickedEventArgs e ) : void

Reload the html shown in the html editor by running coloring again.

OnRunTestButtonClick ( object sender, EventArgs e ) : void

Execute performance test by setting all sample htmls in a loop.

OnShowGeneratedHtmlCheckedChanged ( object sender, EventArgs e ) : void

On change if to show generated html or regular update the web browser to show the new choice.

OnToggleWebBrowserButton_Click ( object sender, EventArgs e ) : void

Show\Hide the web browser viwer.

OnUpdateHtmlTimerTick ( object state ) : void

Update the html renderer with text from html editor.

TryLoadResourceImage ( string src ) : PixelFarm.Drawing.Image

Get image by resource key.

UpdateWebBrowserHtml ( ) : void

Update the html shown in the web browser

_samplesTreeView_NodeMouseClick ( object sender, TreeNodeMouseClickEventArgs e ) : void

Method Details

DemoForm() public method

Init.
public DemoForm ( PixelFarm p ) : System
p PixelFarm
return System

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

LoadDemo() public method

public LoadDemo ( DemoBase demoBase ) : void
demoBase DemoBase
return void

PrepareSamples() public method

public PrepareSamples ( ) : void
return void