C# Class ARCed.Helpers.ControlHelper

Afficher le fichier Open project: borisblizzard/arcreator

Méthodes publiques

Méthode Description
GetMapLabel ( int id ) : string
Populate ( ComboBox ctrl, IList data, bool none ) : void

Clears and fills the control with the given data.

Painting is suspended until after items have been added

Populate ( ListBox ctrl, IList data, bool none ) : void

Clears and fills the control with the given data.

Painting is suspended until after items have been added

RenderHeaderImage ( PictureBox picBox, string text ) : void

RenderHeaderImage ( PictureBox picBox, string text, Font font, Brush textBrush, Color gradient1, Color gradient2 ) : void

Method Details

GetMapLabel() public static méthode

public static GetMapLabel ( int id ) : string
id int
Résultat string

Populate() public static méthode

Clears and fills the control with the given data.
Painting is suspended until after items have been added
public static Populate ( ComboBox ctrl, IList data, bool none ) : void
ctrl System.Windows.Forms.ComboBox Combobox control to fill
data IList List of data
none bool Flag to fill the first position with "None"
Résultat void

Populate() public static méthode

Clears and fills the control with the given data.
Painting is suspended until after items have been added
public static Populate ( ListBox ctrl, IList data, bool none ) : void
ctrl System.Windows.Forms.ListBox Listbox control to fill
data IList List of data
none bool Flag to fill the first position with "None"
Résultat void

RenderHeaderImage() public static méthode

public static RenderHeaderImage ( PictureBox picBox, string text ) : void
picBox System.Windows.Forms.PictureBox
text string
Résultat void

RenderHeaderImage() public static méthode

public static RenderHeaderImage ( PictureBox picBox, string text, Font font, Brush textBrush, Color gradient1, Color gradient2 ) : void
picBox System.Windows.Forms.PictureBox
text string
font System.Drawing.Font
textBrush System.Drawing.Brush
gradient1 Color
gradient2 Color
Résultat void