public Initialize ( string categoryName, List |
||
categoryName | string | |
states | List |
|
return | void |
private void AddComboBoxIfStatesExist(string name, List <StateSave> states) { if (states.Count != 0) { StatePanel.SuspendLayout(); StateCategoryControl scc = new StateCategoryControl(); this.StatePanel.Controls.Add(scc); scc.Initialize(name, states); StatePanel.ResumeLayout(); StatePanel.PerformLayout(); scc.ItemSelect += new EventHandler(RefreshStates); } }
private void AddComboBoxIfStatesExist(string name, List<StateSave> states) { if (states.Count != 0) { StatePanel.SuspendLayout(); StateCategoryControl scc = new StateCategoryControl(); this.StatePanel.Controls.Add(scc); scc.Initialize(name, states); StatePanel.ResumeLayout(); StatePanel.PerformLayout(); scc.ItemSelect += new EventHandler(RefreshStates); } }