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