Exemplo n.º 1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            Guiderfrm frm = new Guiderfrm();

            frm.ShowDialog();
            if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                lvGuide_Load(HuongDanVien.All());
            }
        }
Exemplo n.º 2
0
 private void btnUpdate_Click(object sender, EventArgs e)
 {
     if (lvGuide.SelectedItems.Count > 0)
     {
         Guiderfrm frm = new Guiderfrm();
         frm.MaSo = lvGuide.SelectedItems[0].SubItems[0].Text;
         frm.ShowDialog();
         if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
         {
             lvGuide_Load(HuongDanVien.All());
         }
     }
 }