Initialize() public method

public Initialize ( string categoryName, List states ) : void
categoryName string
states List
return void
Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
        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);
            }
        }