private void ResetVisitorsEntryForm()
        {
            txtFirstName.Text      = "";
            txtLastName.Text       = "";
            txtContactNo.Text      = "";
            txtAddress.Text        = "";
            txtOccupation.Text     = "";
            txtEmailAddr.Text      = "";
            CheckInTimePicker.Text = "";
            lblOutTime.Hide();
            CheckOutTimepicker.Hide();

            txtFirstName.Enabled      = true;
            txtLastName.Enabled       = true;
            txtContactNo.Enabled      = true;
            txtAddress.Enabled        = true;
            txtEmailAddr.Enabled      = true;
            txtOccupation.Enabled     = true;
            CheckInTimePicker.Enabled = true;
        }
        private void CSVSearch(string searchValue)
        {
            List <VisitorsInformation> searchedData = new List <VisitorsInformation>();

            if (File.Exists("CheckinsInformation.csv"))
            {
                using (Stream stream = new FileStream("CheckinsInformation.csv", FileMode.Open, FileAccess.Read))
                {
                    CsvChecker <VisitorsInformation> cs = new CsvChecker <VisitorsInformation>()
                    {
                        UseTextQualifier = true,
                    };

                    searchedData = cs.SearchInFile(stream, searchValue);
                }
            }
            else
            {
                lblMainMsg.Text = "Visitor Not Found";
                lblMainMsg.Show();
            }

            bool   visitorFound = false;
            string dateTody     = dateToday.Text;

            foreach (VisitorsInformation v in searchedData)
            {
                var abc = v.EntryDate;
                if (v.EntryDate.Equals(dateTody))
                {
                    visitorFound = true;

                    visitorID.Text         = v.ID.ToString();
                    txtFirstName.Text      = v.FirstName;
                    txtLastName.Text       = v.LastName;
                    txtContactNo.Text      = v.ContactNo.ToString();
                    txtAddress.Text        = v.Address;
                    txtOccupation.Text     = v.Occupation;
                    txtEmailAddr.Text      = v.EmailAddress;
                    CheckInTimePicker.Text = v.CheckInTime;

                    txtFirstName.Enabled      = false;
                    txtLastName.Enabled       = false;
                    txtContactNo.Enabled      = false;
                    txtAddress.Enabled        = false;
                    txtEmailAddr.Enabled      = false;
                    txtOccupation.Enabled     = false;
                    CheckInTimePicker.Enabled = false;

                    lblOutTime.Show();
                    CheckOutTimepicker.Show();
                    newVisitorEntryPanel.Show();
                    lblMainMsg.Hide();
                    btnClear.Visible = false;
                }
            }

            if (!visitorFound)
            {
                lblMainMsg.Text = "Visitor Not Found";
                lblMainMsg.Show();
            }
        }