private void GetSelectableAppointmentTime()
        {
            if (count > 0)
            {
                foreach (var item in groupControlDateTime.Controls)
                {
                    if (item is CheckButton)
                    {
                        ((CheckButton)item).Enabled           = true;
                        ((CheckButton)item).AllowAllUnchecked = true;
                        ((CheckButton)item).Checked           = false;
                    }
                }

                dateEditAppointment.Enabled        = true;
                simpleButtonAppointmentSet.Enabled = true;
                simpleButtonRefresh.Enabled        = true;
                List <string> times = new List <string>();
                times = bllMember.GetSelectableAppointmentTime(dateEditAppointment.DateTime, (Doctor)listBoxControlDoctor.SelectedItem);
                foreach (var time in times)
                {
                    foreach (var checkButton in groupControlDateTime.Controls)
                    {
                        if (checkButton is CheckButton)
                        {
                            if (((CheckButton)checkButton).Text == time)
                            {
                                ((CheckButton)checkButton).Enabled = false;
                                break;
                            }
                        }
                    }
                }
                if (times.Count == 0)
                {
                    foreach (var checkButton in groupControlDateTime.Controls)
                    {
                        if (checkButton is CheckButton)
                        {
                            ((CheckButton)checkButton).Enabled           = true;
                            ((CheckButton)checkButton).AllowAllUnchecked = true;
                            ((CheckButton)checkButton).Checked           = false;
                        }
                    }
                }
            }
            count++;
        }