private void barButtonItemAddNewCountry_ItemClick(object sender, ItemClickEventArgs e) { XtraFormCountry form = new XtraFormCountry(); form.ShowDialog(); bindingSourceCity_CurrentChanged(null, null); }
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); }