System.Windows.Forms.CheckedListBox.UpdateCollections C# (CSharp) Method

UpdateCollections() private method

private UpdateCollections ( ) : void
return void
		private void UpdateCollections ()
		{
			if(CheckedItems != null)
				CheckedItems.Refresh ();
			if(CheckedIndices != null)
				CheckedIndices.Refresh ();
		}
	}

Usage Example

Example #1
0
            public int Add(object item, CheckState check)
            {
                int idx = Add(item);

                ItemCheckEventArgs icea = new ItemCheckEventArgs(idx, check, CheckState.Unchecked);

                if (check == CheckState.Checked)
                {
                    owner.OnItemCheck(icea);
                }

                if (icea.NewValue != CheckState.Unchecked)
                {
                    owner.check_states[item] = icea.NewValue;
                }

                owner.UpdateCollections();
                return(idx);
            }