Exemple #1
0
        private void barButtonItemAddNewCountry_ItemClick(object sender, ItemClickEventArgs e)
        {
            XtraFormCountry form = new XtraFormCountry();

            form.ShowDialog();
            bindingSourceCity_CurrentChanged(null, null);
        }
Exemple #2
0
        private void barButtonItemEditCountry_ItemClick(object sender, ItemClickEventArgs e)
        {
            Country selectedCountry = bindingSourceCountry.Current as Country;

            if (selectedCountry.IsNull())
            {
                Extensions.Extensions.ObjectNotSelectedForEdit();
                return;
            }
            XtraFormCountry formCountry = new XtraFormCountry(selectedCountry);

            formCountry.ShowDialog();
            bindingSourceCity_CurrentChanged(null, null);
        }