Example #1
0
        public void SetItemChecked(int index, bool bChecked)
        {
            if (index < 0 || index > AllControls.Count)
            {
                return;
            }

            CustomSummaryCheckedItem itemBox = AllControls[index];

            itemBox.ItemChecked = bChecked;
        }
Example #2
0
        public void Add(SummaryItemDescription summaryItem)
        {
            CustomSummaryCheckedItem customItem = new CustomSummaryCheckedItem(summaryItem, this);

            this.palList.Controls.Add(customItem);

            customItem.BringToFront();

            customItem.Dock = DockStyle.Top;

            AllControls.Add(customItem);
        }
        private void ChangeSelectItem()
        {
            CustomSummaryCheckedItem beforeSelectedSummaryItemBox = parentCheckedBox.SelectedSummaryItemBox;

            if (beforeSelectedSummaryItemBox == this)
            {
                return;
            }

            if (beforeSelectedSummaryItemBox != null)
            {
                beforeSelectedSummaryItemBox.SetSelectionColor(false);
            }

            this.SetSelectionColor(true);

            parentCheckedBox.SelectedSummaryItemBox = this;
        }