예제 #1
0
        private void btnThem_Click(object sender, EventArgs e)
        {
            frmTraSach frm = new frmTraSach();

            frm.ShowInTaskbar = false;
            frm.isInsert      = true;
            frm.LamMoi_Cick  += new EventHandler(HienThi_Event);
            frm.ShowDialog();
        }
예제 #2
0
 private void msds_DoubleClick(object sender, EventArgs e)
 {
     try
     {
         if (gridView1.RowCount <= 0)
         {
             return;
         }
         else
         {
             frmTraSach frm = new frmTraSach();
             frm.ShowInTaskbar = false;
             frm.isInsert      = false;
             frm.SoPT          = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, gridView1.Columns[0]).ToString();
             frm.LamMoi_Cick  += new EventHandler(HienThi_Event);
             frm.ShowDialog();
         }
     }
     catch
     { }
 }