C# Class FarsiLibrary.Win.Controls.FAMessageBoxManager

Manages various instances of FAMessageBox controls. This manager class, manages the saved responses of all FAMessageBox controls.
Show file Open project: HEskandari/FarsiLibrary Class Usage Examples

Public Methods

Method Description
CreateMessageBox ( string name ) : FAMessageBox

Creates a new FAMessageBox with the specified unique name. If null is specified in the name parameter of the FAMessageBox control, the instance is not managed by the Manager and will be disposed automatically after call to FAMessageBox.Show() method.

CreateMessageBox ( string name, bool rtl ) : FAMessageBox

Creates a new FAMessageBox with the specified unique name. If null is specified in the name parameter of the FAMessageBox control, the instance is not managed by the Manager and will be disposed automatically after call to FAMessageBox.Show() method. Set rtl value to true, if the control is supposed to run a RTL messagebox, else set it to false, or use the overloaded method.

DeleteMessageBox ( string name ) : bool

Deletes the message box with the specified name

GetMessageBox ( string name ) : FAMessageBox

Gets the FAMessageBox instance with the specified name.

ReadSavedResponses ( Stream stream ) : void

Loads message box values from DrawTab stream. This method is not implemented yet.

ResetAllSavedResponses ( ) : void

Resets the saved responses for all message boxes that are managed by the manager.

ResetSavedResponse ( string messageBoxName ) : void

Reset the saved response for the message box with the specified name.

WriteSavedResponses ( Stream stream ) : void

Save message box values to an stream.

Private Methods

Method Description
GetSavedResponse ( FAMessageBox msgBox ) : string

Gets the saved response for the specified message box

SetSavedResponse ( FAMessageBox msgBox, string response ) : void

Set the saved response for the specified message box

Method Details

CreateMessageBox() public static method

Creates a new FAMessageBox with the specified unique name. If null is specified in the name parameter of the FAMessageBox control, the instance is not managed by the Manager and will be disposed automatically after call to FAMessageBox.Show() method.
public static CreateMessageBox ( string name ) : FAMessageBox
name string The name of the message box
return FAMessageBox

CreateMessageBox() public static method

Creates a new FAMessageBox with the specified unique name. If null is specified in the name parameter of the FAMessageBox control, the instance is not managed by the Manager and will be disposed automatically after call to FAMessageBox.Show() method. Set rtl value to true, if the control is supposed to run a RTL messagebox, else set it to false, or use the overloaded method.
public static CreateMessageBox ( string name, bool rtl ) : FAMessageBox
name string The name of the which should be unique.
rtl bool Is the instance has RTL or LTR layout.
return FAMessageBox

DeleteMessageBox() public static method

Deletes the message box with the specified name
public static DeleteMessageBox ( string name ) : bool
name string The name of the message box to delete
return bool

GetMessageBox() public static method

Gets the FAMessageBox instance with the specified name.
public static GetMessageBox ( string name ) : FAMessageBox
name string The name of the message box to retrieve
return FAMessageBox

ReadSavedResponses() public static method

Loads message box values from DrawTab stream. This method is not implemented yet.
public static ReadSavedResponses ( Stream stream ) : void
stream Stream
return void

ResetAllSavedResponses() public static method

Resets the saved responses for all message boxes that are managed by the manager.
public static ResetAllSavedResponses ( ) : void
return void

ResetSavedResponse() public static method

Reset the saved response for the message box with the specified name.
public static ResetSavedResponse ( string messageBoxName ) : void
messageBoxName string The name of the message box whose response is to be reset.
return void

WriteSavedResponses() public static method

Save message box values to an stream.
public static WriteSavedResponses ( Stream stream ) : void
stream Stream
return void