C# Класс ARCed.Helpers.ControlHelper

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

GetMapLabel() публичный статический Метод

public static GetMapLabel ( int id ) : string
id int
Результат string

Populate() публичный статический Метод

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"
Результат void

Populate() публичный статический Метод

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"
Результат void

RenderHeaderImage() публичный статический Метод

public static RenderHeaderImage ( PictureBox picBox, string text ) : void
picBox System.Windows.Forms.PictureBox
text string
Результат void

RenderHeaderImage() публичный статический Метод

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
Результат void