示例#1
0
        private void btnThemTacGia_Click(object sender, EventArgs e)
        {
            frmThemTacGia frmThemTacGia = new frmThemTacGia();

            frmThemTacGia.ShowDialog();
            //
            loadDanhSachTacGia(dgvDanhSachTacGia, BAL_TacGia.Load());
            for (int i = 0; i < dgvDanhSachTacGia.RowCount; i++)
            {
                if (dgvDanhSachTacGia["MaTacGia", i].Value.ToString() == ("TG" + BAL_TacGia.Count()))
                {
                    dgvDanhSachTacGia["TenTacGia", i].Selected = true;
                }
            }
        }
示例#2
0
        private void btnThemSach_Click(object sender, EventArgs e)
        {
            frmThemTacGia frmThemTacGia = new frmThemTacGia();

            frmThemTacGia.ShowDialog();
        }