示例#1
0
        private void btnThem_Click(object sender, EventArgs e)
        {
            frmAddSach frm = new frmAddSach();

            frm.ShowDialog();
            if (frm.IsThem)
            {
                HienThiDanhSach();
            }
        }
示例#2
0
        private void btnSua_Click(object sender, EventArgs e)
        {
            frmAddSach frmSua = new frmAddSach();

            String maSua = gridSach.CurrentRow.Cells[0].Value.ToString();

            frmSua.IsMaSua = maSua;

            frmSua.ShowDialog();
            if (frmSua.IsSua)
            {
                HienThiDanhSach();
            }
        }