System.Windows.Forms.CheckedListBox.CheckedIndexCollection.GetEnumerator()

Here are the examples of the csharp api class System.Windows.Forms.CheckedListBox.CheckedIndexCollection.GetEnumerator() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: GEDKeeper
Source File: OptionsPicker.cs
View license
private void listView1_SelectedValue(object sender, EventArgs e)
        {
            if (DropState == DropDownState.Dropping || DropState == DropDownState.Closing) return;

            string text = "";
            IEnumerator checkedEnum = fCheckedListBox.CheckedIndices.GetEnumerator();
            while (checkedEnum.MoveNext())
            {
                int idx = (int)checkedEnum.Current;
                if (fCheckedListBox.GetItemChecked(idx)) {
                    text += fCheckedListBox.Items[idx] + ";";
                }
            }
            Text = text;

            //CloseDropDown();

            if (OptionsChanged != null)
                OptionsChanged(null, null);
        }