public AccessLogFilterForm(bool export)
        {
            InitializeComponent();
            Controls.Remove(tabControl1);
            Controls.Add(panel4);
            this.Height = 200;
            List <AccessLog> logList = AccessLog.All(0, 1);

            _firstLogDate           = DateTime.Parse(logList[0].LogDate);
            dateTimePicker3.MinDate = dateTimePicker3.Value = _firstLogDate;
            dateTimePicker3.MaxDate = DateTime.Now.Date;
            dateTimePicker4.MinDate = _firstLogDate;
            dateTimePicker4.MaxDate = DateTime.Now.Date;
        }
        //Filter Access Log
        public AccessLogFilterForm()
        {
            InitializeComponent();
            Controls.Remove(tabControl1);
            Controls.Add(panel1);
            List <AccessLog> logList = AccessLog.All(0, 1);

            _firstLogDate           = DateTime.Parse(logList[0].LogDate);
            dateTimePicker1.MinDate = dateTimePicker1.Value = _firstLogDate;
            dateTimePicker1.MaxDate = DateTime.Now;
            dateTimePicker2.MinDate = _firstLogDate;
            dateTimePicker2.MaxDate = DateTime.Now;
            radioButton1.Checked    = true;
            radioButton13.Checked   = true;
        }