示例#1
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            Country     country = (Country)bindSrcTowns.List[bindSrcTowns.Position];
            CountryForm ft      = new CountryForm(country);

            if (ft.ShowDialog() == DialogResult.OK)
            {
                bindSrcTowns.List[bindSrcTowns.Position] = country;
            }
        }
示例#2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            Country     country = new Country();
            CountryForm ft      = new CountryForm(country);

            if (ft.ShowDialog() == DialogResult.OK)
            {
                bindSrcTowns.Add(country);
            }
        }