Пример #1
0
        private void btnThem_Click(object sender, EventArgs e)
        {
            frmSach frm = new frmSach();

            frm.IsInsert      = true;
            frm.LamMoi       += new EventHandler(btnHienThi_Click);
            frm.ShowInTaskbar = false;
            frm.ShowDialog();
        }
Пример #2
0
        private void gridView1_DoubleClick(object sender, EventArgs e)
        {
            frmSach frm = new frmSach();

            frm.IsInsert      = false;
            frm.Ma            = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, gridView1.Columns[0]).ToString();
            frm.LamMoi       += new EventHandler(btnHienThi_Click);
            frm.ShowInTaskbar = false;
            frm.ShowDialog();
        }