C# Class DroidExplorer.Controls.VistaActiveTaskDialog

The active Task Dialog window. Provides several methods for acting on the active TaskDialog. You should not use this object after the TaskDialog Destroy notification callback. Doing so will result in undefined behavior and likely crash.
Inheritance: IWin32Window
Mostra file Open project: camalot/droidexplorer Class Usage Examples

Public Methods

Method Description
ClickButton ( int buttonId ) : bool

Simulate the action of a button click in the TaskDialog. This can be a DialogResult value or the ButtonID set on a TasDialogButton set on TaskDialog.Buttons.

ClickRadioButton ( int buttonId ) : void

Simulate the action of a radio button click in the TaskDialog. The passed buttonID is the ButtonID set on a TaskDialogButton set on TaskDialog.RadioButtons.

ClickVerification ( bool checkedState, bool setKeyboardFocusToCheckBox ) : void

Check or uncheck the verification checkbox in the TaskDialog.

EnableButton ( int buttonId, bool enable ) : void

Enable or disable a button in the TaskDialog. The passed buttonID is the ButtonID set on a TaskDialogButton set on TaskDialog.Buttons or a common button ID.

EnableRadioButton ( int buttonId, bool enable ) : void

Enable or disable a radio button in the TaskDialog. The passed buttonID is the ButtonID set on a TaskDialogButton set on TaskDialog.RadioButtons.

SetButtonElevationRequiredState ( int buttonId, bool elevationRequired ) : void

Designate whether a given Task Dialog button or command link should have a User Account Control (UAC) shield icon.

SetContent ( string content ) : bool

Updates the content text.

SetExpandedInformation ( string expandedInformation ) : bool

Updates the Expanded Information text.

SetFooter ( string footer ) : bool

Updates the Footer text.

SetMainInstruction ( string mainInstruction ) : bool

Updates the Main Instruction.

SetMarqueeProgressBar ( bool marquee ) : bool

Used to indicate whether the hosted progress bar should be displayed in marquee mode or not.

SetProgressBarMarquee ( bool startMarquee, uint speed ) : void

Sets the animation state of the Marquee Progress Bar.

SetProgressBarPosition ( int newPosition ) : int

Set the current position for a progress bar.

SetProgressBarRange ( Int16 minRange, Int16 maxRange ) : bool

Set the minimum and maximum values for the hosted progress bar.

SetProgressBarState ( VistaProgressBarState newState ) : bool

Sets the state of the progress bar.

UpdateContent ( string content ) : void

Updates the content text.

UpdateExpandedInformation ( string expandedInformation ) : void

Updates the Expanded Information text. No effect if it was previously set to null.

UpdateFooter ( string footer ) : void

Updates the Footer text. No Effect if it was perviously set to null.

UpdateFooterIcon ( Icon icon ) : void

Updates the footer icon. Note the type (standard via enum or custom via Icon type) must be used when upating the icon.

UpdateFooterIcon ( VistaTaskDialogIcon icon ) : void

Updates the footer icon. Note the type (standard via enum or custom via Icon type) must be used when upating the icon.

UpdateMainIcon ( Icon icon ) : void

Updates the main instruction icon. Note the type (standard via enum or custom via Icon type) must be used when upating the icon.

UpdateMainIcon ( VistaTaskDialogIcon icon ) : void

Updates the main instruction icon. Note the type (standard via enum or custom via Icon type) must be used when upating the icon.

UpdateMainInstruction ( string mainInstruction ) : void

Updates the Main Instruction.

Private Methods

Method Description
VistaActiveTaskDialog ( IntPtr handle ) : System

Creates a ActiveTaskDialog.

Method Details

ClickButton() public method

Simulate the action of a button click in the TaskDialog. This can be a DialogResult value or the ButtonID set on a TasDialogButton set on TaskDialog.Buttons.
public ClickButton ( int buttonId ) : bool
buttonId int Indicates the button ID to be selected.
return bool

ClickRadioButton() public method

Simulate the action of a radio button click in the TaskDialog. The passed buttonID is the ButtonID set on a TaskDialogButton set on TaskDialog.RadioButtons.
public ClickRadioButton ( int buttonId ) : void
buttonId int Indicates the button ID to be selected.
return void

ClickVerification() public method

Check or uncheck the verification checkbox in the TaskDialog.
public ClickVerification ( bool checkedState, bool setKeyboardFocusToCheckBox ) : void
checkedState bool The checked state to set the verification checkbox.
setKeyboardFocusToCheckBox bool True to set the keyboard focus to the checkbox, and fasle otherwise.
return void

EnableButton() public method

Enable or disable a button in the TaskDialog. The passed buttonID is the ButtonID set on a TaskDialogButton set on TaskDialog.Buttons or a common button ID.
public EnableButton ( int buttonId, bool enable ) : void
buttonId int Indicates the button ID to be enabled or diabled.
enable bool Enambe the button if true. Disable the button if false.
return void

EnableRadioButton() public method

Enable or disable a radio button in the TaskDialog. The passed buttonID is the ButtonID set on a TaskDialogButton set on TaskDialog.RadioButtons.
public EnableRadioButton ( int buttonId, bool enable ) : void
buttonId int Indicates the button ID to be enabled or diabled.
enable bool Enambe the button if true. Disable the button if false.
return void

SetButtonElevationRequiredState() public method

Designate whether a given Task Dialog button or command link should have a User Account Control (UAC) shield icon.
public SetButtonElevationRequiredState ( int buttonId, bool elevationRequired ) : void
buttonId int ID of the push button or command link to be updated.
elevationRequired bool False to designate that the action invoked by the button does not require elevation; /// true to designate that the action does require elevation.
return void

SetContent() public method

Updates the content text.
public SetContent ( string content ) : bool
content string The new value.
return bool

SetExpandedInformation() public method

Updates the Expanded Information text.
public SetExpandedInformation ( string expandedInformation ) : bool
expandedInformation string The new value.
return bool

SetFooter() public method

Updates the Footer text.
public SetFooter ( string footer ) : bool
footer string The new value.
return bool

SetMainInstruction() public method

Updates the Main Instruction.
public SetMainInstruction ( string mainInstruction ) : bool
mainInstruction string The new value.
return bool

SetMarqueeProgressBar() public method

Used to indicate whether the hosted progress bar should be displayed in marquee mode or not.
public SetMarqueeProgressBar ( bool marquee ) : bool
marquee bool Specifies whether the progress bar sbould be shown in Marquee mode. /// A value of true turns on Marquee mode.
return bool

SetProgressBarMarquee() public method

Sets the animation state of the Marquee Progress Bar.
public SetProgressBarMarquee ( bool startMarquee, uint speed ) : void
startMarquee bool true starts the marquee animation and false stops it.
speed uint The time in milliseconds between refreshes.
return void

SetProgressBarPosition() public method

Set the current position for a progress bar.
public SetProgressBarPosition ( int newPosition ) : int
newPosition int The new position.
return int

SetProgressBarRange() public method

Set the minimum and maximum values for the hosted progress bar.
public SetProgressBarRange ( Int16 minRange, Int16 maxRange ) : bool
minRange System.Int16 Minimum range value. By default, the minimum value is zero.
maxRange System.Int16 Maximum range value. By default, the maximum value is 100.
return bool

SetProgressBarState() public method

Sets the state of the progress bar.
public SetProgressBarState ( VistaProgressBarState newState ) : bool
newState VistaProgressBarState The state to set the progress bar.
return bool

UpdateContent() public method

Updates the content text.
public UpdateContent ( string content ) : void
content string The new value.
return void

UpdateExpandedInformation() public method

Updates the Expanded Information text. No effect if it was previously set to null.
public UpdateExpandedInformation ( string expandedInformation ) : void
expandedInformation string The new value.
return void

UpdateFooter() public method

Updates the Footer text. No Effect if it was perviously set to null.
public UpdateFooter ( string footer ) : void
footer string The new value.
return void

UpdateFooterIcon() public method

Updates the footer icon. Note the type (standard via enum or custom via Icon type) must be used when upating the icon.
public UpdateFooterIcon ( Icon icon ) : void
icon System.Drawing.Icon The icon to set.
return void

UpdateFooterIcon() public method

Updates the footer icon. Note the type (standard via enum or custom via Icon type) must be used when upating the icon.
public UpdateFooterIcon ( VistaTaskDialogIcon icon ) : void
icon VistaTaskDialogIcon Task Dialog standard icon.
return void

UpdateMainIcon() public method

Updates the main instruction icon. Note the type (standard via enum or custom via Icon type) must be used when upating the icon.
public UpdateMainIcon ( Icon icon ) : void
icon System.Drawing.Icon The icon to set.
return void

UpdateMainIcon() public method

Updates the main instruction icon. Note the type (standard via enum or custom via Icon type) must be used when upating the icon.
public UpdateMainIcon ( VistaTaskDialogIcon icon ) : void
icon VistaTaskDialogIcon Task Dialog standard icon.
return void

UpdateMainInstruction() public method

Updates the Main Instruction.
public UpdateMainInstruction ( string mainInstruction ) : void
mainInstruction string The new value.
return void