public override void Edit() { //XtraMessageBox.Show(this, "Edit", this.Name, MessageBoxButtons.OK); Domain.Country l = (Domain.Country) mainGridView.GetRow(mainGridView.FocusedRowHandle); if (l == null) { return; } FormCountry f = new FormCountry(); f.Text = GetLocalized("Edit Country"); f.Country = l; if (f.ShowDialog(OwnerForm) == DialogResult.OK) { _svc.SaveOrUpdate(f.Country); } RefreshData(); }
public override void Edit() { //XtraMessageBox.Show(this, "Edit", this.Name, MessageBoxButtons.OK); Domain.Country l = (Domain.Country)mainGridView.GetRow(mainGridView.FocusedRowHandle); if (l == null) { return; } FormCountry f = new FormCountry(); f.Text = GetLocalized("Edit Country"); f.Country = l; if (f.ShowDialog(OwnerForm) == DialogResult.OK) { _svc.SaveOrUpdate(f.Country); } RefreshData(); }