C# Class SystemEx.Windows.Forms.EmulateTaskDialog

显示文件 Open project: pvginkel/SystemEx Class Usage Examples

Public Methods

Method Description
EmulateTaskDialog ( TaskDialog newTaskDialog ) : System
ToString ( ) : string

This will return the formatted contents of the form. Useful when the user press "ctrl + c" on the form.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

WndProc ( Message &m ) : void

Private Methods

Method Description
BuildControlButton ( int tag, string text ) : Button

Creates a standard button with a common event handler to close the the form and return the button's Id.

BuildControlLinkLabel ( Padding margin, string text ) : System.Windows.Forms.LinkLabel

Creates a standard link label and will convert any anchor links to a proper link.

BuildForm ( ) : void

Main entry method to build the form.

BuildFormFooterArea ( ) : void
BuildFormMainArea ( ) : void
BuildFormSubArea ( ) : void
CloseForm ( ) : void

Closes the form and populate the necessary return results.

EmulateTaskDialog_KeyDown ( object sender, KeyEventArgs e ) : void

Detect user pressing "ctrl + c".

InitializeComponent ( ) : void

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

ParseLinkLabel ( System linkLabel ) : System.Windows.Forms.LinkLabel

Parses a LinkLabel text and extract out all the anchor (a) tags. Then it will parse all the anchor tags and create the relevant links in the text.

SetFormHeight ( ) : void
ToggleExpandedInformationState ( ) : void
button_Click ( object sender, EventArgs e ) : void
expandedInfoButton_Click ( object sender, EventArgs e ) : void
linkLabel_LinkClicked ( object sender, LinkLabelLinkClickedEventArgs e ) : void
timer_Tick ( object sender, EventArgs e ) : void

Method Details

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

EmulateTaskDialog() public method

public EmulateTaskDialog ( TaskDialog newTaskDialog ) : System
newTaskDialog TaskDialog
return System

ToString() public method

This will return the formatted contents of the form. Useful when the user press "ctrl + c" on the form.
public ToString ( ) : string
return string

WndProc() protected method

protected WndProc ( Message &m ) : void
m Message
return void