示例#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();
        }