Esempio n. 1
0
        private void cbChoseSpesialty_SelectedIndexChanged(object sender, EventArgs e)
        {
            ResetRadioButtons();

            mcThisMonth.Enabled = false;
            RadioButtonsEnabledFalse();

            using (var client = new HaServiceClient())
            {
                var check = client.GetDoctorsBySpecialy(client.GetSpecialtyIdByName(cbChoseSpesialty.SelectedItem.ToString()));
                if (check.Length > 0)
                {
                    cbChoseDoctor.DataSource =
                        client.GetDoctorsBySpecialy(client.GetSpecialtyIdByName(cbChoseSpesialty.SelectedItem.ToString()));
                    cbChoseDoctor.DisplayMember = "FirstName";
                    cbChoseDoctor.ValueMember   = "DoctorId";
                }
                else
                {
                    cbChoseDoctor.Enabled = false;
                    //mcThisMonth.Enabled = false;
                    //RadioButtonsEnabledFalse();
                }
                cbChoseDoctor.Enabled = true;
            }
        }