Beispiel #1
0
        private void btnAddRecord_Click(object sender, EventArgs e)
        {
            using (var page = new AddCountryPage())
            {
                page.ShowDialog();
            }

            CountriesPage_Load(null, null);
        }
Beispiel #2
0
        private void EditRecord()
        {
            using (var page = new AddCountryPage())
            {
                if (dgv.CurrentRow != null)
                {
                    page.CountryId = (int)dgv.CurrentRow.Cells["clnId"].Value;
                    page.ShowDialog();
                }
            }

            CountriesPage_Load(null, null);
        }