Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        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);
            }
        }
Exemplo n.º 3
0
        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();
        }