C# Class Support.UI.QueryPanelDialog

Inheritance: QueryPanel
Afficher le fichier Open project: nhmkdev/cardmaker Class Usage Examples

Méthodes publiques

Méthode Description
AllowResize ( ) : void

Allows the form to be resized. This should be used after all of the controls have been added to set the minimum size.

GetButtonPressedString ( ) : string

Returns the string on the button pressed on exit.

QueryPanelDialog ( string sTitle, int nWidth, bool bTabbed ) : System

Constructor

QueryPanelDialog ( string sTitle, int nWidth, int nLabelWidth, bool bTabbed ) : System

Constructor

QueryPanelDialog ( string sTitle, int nWidth, int nLabelWidth, bool bTabbed, string arrayButtons ) : System

Constructor

QueryPanelDialog ( string sTitle, int nWidth, int nLabelWidth, bool bTabbed, string arrayButtons, EventHandler arrayHandlers ) : System

Constructor

SetIcon ( Icon zIcon ) : void

Sets the icon for the form

SetMaxHeight ( int nMaxHeight ) : void

Sets the max desired height for the dialog.

SetTitleText ( string sTitle ) : void

Sets the title text of the dialog.

ShowDialog ( IWin32Window zParentForm ) : DialogResult

Shows the dialog (much like the Form.ShowDialog method)

ShowInTaskBar ( bool bShow ) : void

Flags the dialog to be shown in the task bar.

m_zPanel_Resize ( object sender, EventArgs e ) : void

Private Methods

Méthode Description
InitForm ( string sTitle, int nWidth, string arrayButtons, EventHandler arrayHandlers ) : void

Initializes the form associated with this QueryDialog

QueryDialog_Load ( object sender, EventArgs e ) : void

The dialog load event

btnCancel_Click ( object sender, EventArgs e ) : void

Handles the Cancel button press.

btnGeneric_Click ( object sender, EventArgs e ) : void

Handles generic button presses (for those on the bottom of the dialog)

btnOk_Click ( object sender, EventArgs e ) : void

Handles the Ok button press.

Method Details

AllowResize() public méthode

Allows the form to be resized. This should be used after all of the controls have been added to set the minimum size.
public AllowResize ( ) : void
Résultat void

GetButtonPressedString() public méthode

Returns the string on the button pressed on exit.
public GetButtonPressedString ( ) : string
Résultat string

QueryPanelDialog() public méthode

Constructor
public QueryPanelDialog ( string sTitle, int nWidth, bool bTabbed ) : System
sTitle string Title of the dialog
nWidth int Width of the dialog
bTabbed bool Whether the panel should be tabbed
Résultat System

QueryPanelDialog() public méthode

Constructor
public QueryPanelDialog ( string sTitle, int nWidth, int nLabelWidth, bool bTabbed ) : System
sTitle string Title of the dialog
nWidth int Width of the dialog
nLabelWidth int Width of labels
bTabbed bool Flag indicating whether this should support tabs
Résultat System

QueryPanelDialog() public méthode

Constructor
public QueryPanelDialog ( string sTitle, int nWidth, int nLabelWidth, bool bTabbed, string arrayButtons ) : System
sTitle string Title of the dialog
nWidth int Width of the dialog
nLabelWidth int Width of labels
bTabbed bool Flag indicating whether this should support tabs
arrayButtons string Array of button names to support
Résultat System

QueryPanelDialog() public méthode

Constructor
public QueryPanelDialog ( string sTitle, int nWidth, int nLabelWidth, bool bTabbed, string arrayButtons, EventHandler arrayHandlers ) : System
sTitle string Title of the dialog
nWidth int Width of the dialog
nLabelWidth int Width of labels
bTabbed bool Flag indicating whether this should support tabs
arrayButtons string Array of button names to support
arrayHandlers EventHandler The handlers to associated with the buttons (order match with buttons, null is allowed for an event handler)
Résultat System

SetIcon() public méthode

Sets the icon for the form
public SetIcon ( Icon zIcon ) : void
zIcon System.Drawing.Icon The icon to use for the dialog. If null is specified the icon is hidden.
Résultat void

SetMaxHeight() public méthode

Sets the max desired height for the dialog.
public SetMaxHeight ( int nMaxHeight ) : void
nMaxHeight int
Résultat void

SetTitleText() public méthode

Sets the title text of the dialog.
public SetTitleText ( string sTitle ) : void
sTitle string
Résultat void

ShowDialog() public méthode

Shows the dialog (much like the Form.ShowDialog method)
public ShowDialog ( IWin32Window zParentForm ) : DialogResult
zParentForm IWin32Window
Résultat DialogResult

ShowInTaskBar() public méthode

Flags the dialog to be shown in the task bar.
public ShowInTaskBar ( bool bShow ) : void
bShow bool
Résultat void

m_zPanel_Resize() public méthode

public m_zPanel_Resize ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void