/// <summary> /// Initialize a new instance of the KryptonCheckedListBoxActionList class. /// </summary> /// <param name="owner">Designer that owns this action list instance.</param> public KryptonCheckedListBoxActionList(KryptonCheckedListBoxDesigner owner) : base(owner.Component) { // Remember the list box instance _checkedListBox = owner.Component as KryptonCheckedListBox; // Cache service used to notify when a property has changed _service = (IComponentChangeService)GetService(typeof(IComponentChangeService)); }
//settings utils for loading and populating checkbox lists in settings tab public static void PopulateListBox(KryptonCheckedListBox lsb, string Folder, string FileType) { DirectoryInfo dinfo = new DirectoryInfo(Folder); FileInfo[] Files = dinfo.GetFiles(FileType); foreach (FileInfo file in Files) { lsb.Items.Add(file.Name); } for (int i = 0; i < lsb.Items.Count; i++) { lsb.SetItemChecked(i, true); } }