C# Class RocksmithToolkitLib.Extensions.BetterDialog2

Customizable Dialog Box to replace standard Message Box with positioning and custom buttons
Inheritance: System.Windows.Forms.Form
Afficher le fichier Open project: rscustom/rocksmith-custom-song-toolkit Class Usage Examples

Méthodes publiques

Méthode Description
ShowDialog ( string dialogMessage, string dialogTitle, string textDialogButton1, string textDialogButton2, string textDialogButton3, Image dialogIcon, string iconMessage, int topFromCenter, int leftFromCenter ) : DialogResult

Custom Dialog Box to replace standard Message Box with positioning

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Méthode Description
BetterDialog2 ( string dialogMessage, string dialogTitle, string textDialogButton1, string textDialogButton2, string textDialogButton3, Image dialogIcon, string iconMessage, int topFromCenter, int leftFromCenter ) : System

The private constructor. This is only called by the static method ShowDialog.

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

Method Details

Dispose() protected méthode

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Résultat void

ShowDialog() public static méthode

Custom Dialog Box to replace standard Message Box with positioning
public static ShowDialog ( string dialogMessage, string dialogTitle, string textDialogButton1, string textDialogButton2, string textDialogButton3, Image dialogIcon, string iconMessage, int topFromCenter, int leftFromCenter ) : DialogResult
dialogMessage string Main dialog message, if 'null' then not displayed
dialogTitle string Title displayed in dialog frame at top
textDialogButton1 string Message box 1 button text, if 'null' then not displayed
textDialogButton2 string Message box 2 button text, if 'null' then not displayed
textDialogButton3 string Message box 3 button text, if 'null' then not displayed
dialogIcon Image Image displayed left side
iconMessage string Promenent bold message displayed to right of icon
topFromCenter int Positive pixel distance up from screen center, default location is centered on screen
leftFromCenter int Positive pixel distance left from screen center, default location is centered on screen
Résultat DialogResult