private void barButtonItemDeleteDoctor_ItemClick(object sender, ItemClickEventArgs e)
        {
            Doctor doctor = bindingSourceDoctor.Current as Doctor;

            if (doctor.IsNull())
            {
                Extensions.Extensions.ObjectNotSelectedForDelete();
                return;
            }

            if (Extensions.Extensions.DeletingAlert(doctor.Name + " " + doctor.Surname) != DialogResult.Yes)
            {
                return;
            }
            Extensions.Extensions.ShowWaitForm(description: "Doktor siliniyor...");
            DoctorSolClient client = Extensions.Extensions.GetDoctorSolClient();

            ProcessResult processResult = client.Delete(doctor.Id);

            SplashScreenManager.CloseForm(false);
            Extensions.Extensions.ProcessResultMessage(processResult.Errors, (int)processResult.Result);
            if (processResult.Result == ExtensionsBLLResult.Success)
            {
                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();
        }