Ejemplo n.º 1
0
        private void CheckedListBoxChange(CheckedListBoxControl cb, string index)
        {
            int i = index.IndexOf("_");

            if (i != -1)
            {
                string item  = index.Substring(0, i);
                string state = index.Substring(i + 1);
                int    checkedIndex;
                if (Int32.TryParse(item, out checkedIndex))
                {
                    cb.CheckedListBox.SetItemChecked(checkedIndex, state == "true");
                    ControlFilterRefresh(cb);
                    cb.OnSelectedIndexChanged(null);
                }
            }
        }