private void ToolStripButton3_Click(object sender, EventArgs e)
        {
            CountryForm frm = new CountryForm();

            frm.Text      = "New Country";
            frm.TopLevel  = false;
            frm.MdiParent = this.MdiParent;
            frm.Show();
        }
        private void editToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var rowIndex = dgvCountryList.SelectedRows[0].Index;

            Country country = Get(rowIndex);

            if (country != null)
            {
                CountryForm frm = new CountryForm(country);
                frm.Text      = "Edit Country";
                frm.TopLevel  = false;
                frm.MdiParent = this.MdiParent;
                frm.Show();
            }
        }
        private void dgvCountryList_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            var rowIndex = e.RowIndex;

            if (rowIndex >= 0)
            {
                Country country = Get(rowIndex);
                if (country != null)
                {
                    CountryForm frm = new CountryForm(country);
                    frm.Name      = "Edit Country";
                    frm.TopLevel  = false;
                    frm.MdiParent = this.MdiParent;
                    frm.Show();
                }
            }
        }