C# Class FarsiLibrary.Win.Controls.FAMessageBox

An extended MessageBox with lot of customizing capabilities.
Inheritance: IDisposable
Datei anzeigen Open project: HEskandari/FarsiLibrary Class Usage Examples

Private Properties

Property Type Description
FAMessageBox System
IDisposable void

Public Methods

Method Description
AddButton ( FAMessageBoxButton button ) : void

Add DrawTab custom button to the message box

AddButton ( FAMessageBoxButtons button ) : void

Add DrawTab standard button to the message box

AddButton ( string text, string val ) : void

Add DrawTab custom button to the message box

AddButtons ( MessageBoxButtons buttons ) : void

Add standard buttons to the message box.

Show ( ) : string

Shows the message box

Show ( IWin32Window owner ) : string

Shows the messsage box with the specified ownerForm

Private Methods

Method Description
FAMessageBox ( string name, bool isRTL ) : System

Ctor is internal because this can only be created by MBManager

IDisposable ( ) : void

Called by the manager when it is _disposed

Method Details

AddButton() public method

Add DrawTab custom button to the message box
public AddButton ( FAMessageBoxButton button ) : void
button FAMessageBoxButton The button to add
return void

AddButton() public method

Add DrawTab standard button to the message box
public AddButton ( FAMessageBoxButtons button ) : void
button FAMessageBoxButtons The standard button to add
return void

AddButton() public method

Add DrawTab custom button to the message box
public AddButton ( string text, string val ) : void
text string The text of the button
val string The return value in case this button is clicked
return void

AddButtons() public method

Add standard buttons to the message box.
public AddButtons ( MessageBoxButtons buttons ) : void
buttons MessageBoxButtons The standard buttons to add
return void

Show() public method

Shows the message box
public Show ( ) : string
return string

Show() public method

Shows the messsage box with the specified ownerForm
public Show ( IWin32Window owner ) : string
owner IWin32Window
return string