Esempio n. 1
0
 private void UnCheckAllDecorButton_Click(object sender, EventArgs e)
 {
     for (int i = 0; i < DecorCheckedListBox.Items.Count; i++)
     {
         DecorCheckedListBox.SetItemChecked(i, false);
     }
 }
Esempio n. 2
0
        private void ArchDecorButton_CheckedChanged(object sender, EventArgs e)
        {
            int ProductID = 0;

            for (int i = 0; i < DecorCheckedListBox.Items.Count; i++)
            {
                DataRowView castedItem = (DataRowView)DecorCheckedListBox.Items[i];
                ProductID = Convert.ToInt32(castedItem["ProductID"]);
                if (ProductID == 31 || ProductID == 4 || ProductID == 32 ||
                    ProductID == 24 || ProductID == 18 || ProductID == 19 ||
                    ProductID == 27 || ProductID == 28 || ProductID == 26 ||
                    ProductID == 11 || ProductID == 12)
                {
                    continue;
                }
                else
                {
                    DecorCheckedListBox.SetItemChecked(i, ArchDecorButton.Checked);
                }
            }
        }