Ejemplo n.º 1
0
 private void toolStripButton6_Click(object sender, EventArgs e)
 {
     if (lVDanhSachBenhNhan.SelectedItems.Count > 0)
     {
         int index = lVDanhSachBenhNhan.FocusedItem.Index;
         BenhNhan benhNhan = (BenhNhan)arrLDSBenhNhan.ToArray()[index];
         Them_Sua_BenhNhan tsBN = new Them_Sua_BenhNhan(benhNhan, index, 2);
         tsBN.dgBN = new Them_Sua_BenhNhan.dgBenhNhan(SuaBenhNhan);
         tsBN.ShowDialog();
     }
     else
     {
         MessageBox.Show(this,"Chọn một bệnh nhân","Thông báo");
     }
 }
Ejemplo n.º 2
0
 private void toolStripButton5_Click(object sender, EventArgs e)
 {
     Them_Sua_BenhNhan tsBN = new Them_Sua_BenhNhan(null,0,1);
     tsBN.dgBN = new Them_Sua_BenhNhan.dgBenhNhan(GetNewBenhNhan);
     tsBN.ShowDialog();
 }