C# Class Support.UI.QueryPanelDialog

Inheritance: QueryPanel
Exibir arquivo Open project: nhmkdev/cardmaker Class Usage Examples

Public Methods

Method 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

Method 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 method

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
return void

GetButtonPressedString() public method

Returns the string on the button pressed on exit.
public GetButtonPressedString ( ) : string
return string

QueryPanelDialog() public method

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
return System

QueryPanelDialog() public method

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
return System

QueryPanelDialog() public method

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
return System

QueryPanelDialog() public method

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)
return System

SetIcon() public method

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.
return void

SetMaxHeight() public method

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

SetTitleText() public method

Sets the title text of the dialog.
public SetTitleText ( string sTitle ) : void
sTitle string
return void

ShowDialog() public method

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

ShowInTaskBar() public method

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

m_zPanel_Resize() public method

public m_zPanel_Resize ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void