public override void Add() { //XtraMessageBox.Show(this, "Add", this.Name, MessageBoxButtons.OK); FormCountry2 f = new FormCountry2(); f.Text = GetLocalized("New Country"); f.Country = new Domain.Country(); if (f.ShowDialog(OwnerForm) == DialogResult.OK) { _svc.SaveOrUpdate(f.Country); } RefreshData(); }
private void NewCountry() { Domain.Country entity = ClientEnvironment.CountryService.CreateEntity(); FormCountry2 countryform = new FormCountry2(); countryform.Country = entity; if (countryform.ShowDialog() == DialogResult.OK) { List<Domain.Country> l = new List<Baumax.Domain.Country>(); l.Add(countryform.Country); _nodesList.AddCountries(l); } }