C# Class ARCed.Controls.EquipSlot

ファイルを表示 Open project: borisblizzard/arcreator

Private Properties

Property Type Description
InitializeComponent void
checkBoxFixed_CheckedChanged void
comboBoxEquipment_SelectedIndexChanged void

Public Methods

Method Description
BeginUpdate ( ) : void

Maintains performance while items are added to the control's ComboBox one at a time by preventing painting until EndUpdate() is called.

EndUpdate ( ) : void

Resumes painting of the control's ComboBox after painting is suspended from calling BeginUpdate().

EquipSlot ( ) : System

Default constructor

GetItemId ( ) : int

Returns the ID of the selected piece of equipment.

RefreshItems ( List ids ) : void

Refreshes the list of items/equipment in the combo box control

SetItemId ( int id ) : void

Sets the equipment that has the given ID as the current item.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
InitializeComponent ( ) : void

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

checkBoxFixed_CheckedChanged ( object sender, EventArgs e ) : void
comboBoxEquipment_SelectedIndexChanged ( object sender, EventArgs e ) : void

Method Details

BeginUpdate() public method

Maintains performance while items are added to the control's ComboBox one at a time by preventing painting until EndUpdate() is called.
public BeginUpdate ( ) : void
return void

Dispose() protected method

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

EndUpdate() public method

Resumes painting of the control's ComboBox after painting is suspended from calling BeginUpdate().
public EndUpdate ( ) : void
return void

EquipSlot() public method

Default constructor
public EquipSlot ( ) : System
return System

GetItemId() public method

Returns the ID of the selected piece of equipment.
public GetItemId ( ) : int
return int

RefreshItems() public method

Refreshes the list of items/equipment in the combo box control
public RefreshItems ( List ids ) : void
ids List
return void

SetItemId() public method

Sets the equipment that has the given ID as the current item.
public SetItemId ( int id ) : void
id int ID of the equipement to set.
return void