private void btnAdd_Click(object sender, EventArgs e)
        {
            frmAddEditRequirements frm = new frmAddEditRequirements();

            DatabaseConnection.adding   = true;
            DatabaseConnection.updating = false;
            frm.txtEventId.Text         = txtEventId.Text;
            if (frm.ShowDialog() == DialogResult.OK)
            {
                LoadLvwRec();
            }
        }
 private void button4_Click(object sender, EventArgs e)
 {
     if (lvwRec.SelectedItems.Count > 0)
     {
         frmAddEditRequirements frm = new frmAddEditRequirements();
         DatabaseConnection.adding   = false;
         DatabaseConnection.updating = true;
         frm.txtId.Text = lvwRec.SelectedItems[0].SubItems[0].Text;
         if (frm.ShowDialog() == DialogResult.OK)
         {
             LoadLvwRec();
         }
     }
 }