Exemplo n.º 1
0
        private void barButtonItemNewHoliday_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            XtraFormHoliday holiday = new XtraFormHoliday();

            holiday.ShowDialog();
            if (holiday.result.Result != ExtensionsBLLResult.Success)
            {
                return;
            }
            RefreshData();
        }
Exemplo n.º 2
0
        private void barButtonItemEditHoliday_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Holiday selectedHoliday = bindingSourceHolidays.Current as Holiday;

            if (selectedHoliday.IsNull())
            {
                Extensions.Extensions.ObjectNotSelectedForEdit();
                return;
            }

            XtraFormHoliday formDoctorDetail = new XtraFormHoliday(selectedHoliday);

            formDoctorDetail.Text = "Tatil Düzenle";
            formDoctorDetail.ShowDialog();
            if (formDoctorDetail.result.Result != ExtensionsBLLResult.Success)
            {
                return;
            }
            RefreshData();
        }