Пример #1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     try
     {
         frmNhapCongDan frm = new frmNhapCongDan();
         frm.ShowDialog();
         Bind_ListCongDan();
     }
     catch
     {
     }
 }
Пример #2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (listCongDan.SelectedItems.Count < 1)
            {
                MessageBox.Show("Quí vị chưa chọn công dân cần sửa thông tin!");
                return;
            }
            try
            {
                frmNhapCongDan frm = new frmNhapCongDan(listCongDan.SelectedItems[0].ToolTipText);
                frm.ShowDialog();
               // Bind_ListCongDan();
            }
            catch
            {

            }
        }
Пример #3
0
 private void listCongDan_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         frmNhapCongDan frm = new frmNhapCongDan(listCongDan.SelectedItems[0].ToolTipText);
         frm.ShowDialog();
         //Bind_ListCongDan();
     }
     catch
     {
     }
 }