private void btnEdit_Click(object sender, EventArgs e)
 {
     if (lvwApplicant.SelectedItems.Count == 1)
     {
         frmAddEditApplicant frm = new frmAddEditApplicant();
         DatabaseConnection.adding   = false;
         DatabaseConnection.updating = true;
         frm.txtId.Text = lvwApplicant.SelectedItems[0].SubItems[0].Text;
         frm.Show();
     }
 }
示例#2
0
        private void btnView_Click(object sender, EventArgs e)
        {
            frmAddEditApplicant frm = new frmAddEditApplicant();

            frm.Show();
        }