Ejemplo n.º 1
0
        private void conferentieListBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (conferentieListBox.SelectedItems.Count == 1)
            {
                conferentieDagPanel.Visible = true;

                Conferentie conf = (Conferentie)conferentieListBox.SelectedItem;

                volledigeConferentieCheckBox.CheckState = CheckState.Unchecked;
                conferentieDagenCheckedListBox.Items.Clear();
                sessieListBox.Items.Clear();

                List <ConferentieDag> dagen = DataConferentieDag.GeefConferentieDagen(conf.ID);

                if (dagen.Count == 0)
                {
                    volledigeConferentieCheckBox.Enabled = false;
                }
                else
                {
                    volledigeConferentieCheckBox.Enabled = true;
                    conferentieDagenCheckedListBox.Items.AddRange(dagen.ToArray());
                }
            }
        }