C# Class ARCed.Helpers.ControlHelper

Show file Open project: borisblizzard/arcreator

Public Methods

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

public static GetMapLabel ( int id ) : string
id int
return string

Populate() public static method

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

Populate() public static method

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

RenderHeaderImage() public static method

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

RenderHeaderImage() public static method

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