private void btnEdit_Click(object sender, EventArgs e)
        {
            if (grdPassHolderDetails.Rows.Count <= 0 || grdPassHolderDetails.CurrentRow == null)
            {
                return;
            }

            foreach (Form form in System.Windows.Forms.Application.OpenForms)
            {
                if (form.Name == "frmNSGPass")
                {
                    //form.Activate();
                    form.Close();
                    break;
                    //return;
                }
            }

            frmNSGPass nsgPassForm = new frmNSGPass(int.Parse(grdPassHolderDetails.CurrentRow.Cells[0].Value.ToString()));

            nsgPassForm.MdiParent = this.MdiParent;
            //this.Hide();
            nsgPassForm.Show();
            //this.Close();
        }
        private void btnAdd_Click(object sender, EventArgs e)
        {
            foreach (Form form in System.Windows.Forms.Application.OpenForms)
            {
                if (form.Name == "frmNSGPass")
                {
                    //form.Activate();
                    //return;
                    form.Close();
                    break;
                }
            }

            frmNSGPass visitorEntryForm = new frmNSGPass();

            visitorEntryForm.MdiParent = this.MdiParent;
            visitorEntryForm.Show();
        }