Exemplo n.º 1
0
 private void gridView1_DoubleClick(object sender, EventArgs e)
 {
     ghiChu = gridView1.GetRow(gridView1.GetSelectedRows()[0]) as O_GHICHU;
     if (ghiChu.TenNV.Equals(DuLieuTaoSan.NV.TenDangNhapCty))
     {
         iTieuDe.Text   = ghiChu.TieuDe;
         iNoiDung.Text  = ghiChu.NoiDung;
         iGhiChu.Text   = ghiChu.GhiChuRieng;
         btnHuy.Enabled = true;
     }
     else
     {
         ghiChu = new O_GHICHU();
     }
 }
Exemplo n.º 2
0
 //? "S" : "T"
 private void btnHuy_Click(object sender, EventArgs e)
 {
     ghiChu         = new O_GHICHU();
     iTieuDe.Text   = iNoiDung.Text = iGhiChu.Text = string.Empty;
     btnHuy.Enabled = false;
 }