private void barButtonItemNewDoctor_ItemClick(object sender, ItemClickEventArgs e)
        {
            XtraFormDoctorDetail form = new XtraFormDoctorDetail();

            form.ShowDialog();
            RefreshData();
        }
        private void barButtonItemEditDoctor_ItemClick(object sender, ItemClickEventArgs e)
        {
            Doctor selectedDoctor = bindingSourceDoctor.Current as Doctor;

            if (selectedDoctor.IsNull())
            {
                Extensions.Extensions.ObjectNotSelectedForEdit();
                return;
            }
            XtraFormDoctorDetail formDoctorDetail = new XtraFormDoctorDetail(selectedDoctor, true);

            formDoctorDetail.Text = "Doktor Düzenle";
            formDoctorDetail.ShowDialog();
        }