private void tab_userLogs_SelectedIndexChanged(object sender, EventArgs e)
        {
            string         userEmail   = this.tab_userLogs.SelectedTab.Name;
            List <LogInfo> logsForUser = LoggerDAL.GetLogForUser(userEmail);

            Guna2DataGridView gridView = this.tab_userLogs.SelectedTab.Controls[userEmail + "_logview"] as Guna2DataGridView;

            var dataSource = logsForUser.ToDataTable();

            gridView.DataSource = dataSource;
            dataSource.DefaultView.RowFilter = GetFilterString();
            gridView.Refresh();
        }
        private void LogViewer_Load(object sender, EventArgs e)
        {
            List <UserCredential> usersList = UserDAL.GetUsers();

            foreach (var user in usersList)
            {
                this.tab_userLogs.TabPages.Add(GenerateTabForUser(user.Email));
            }

            if (usersList.Any())
            {
                string         userEmail   = usersList[0].Email;
                List <LogInfo> logsForUser = LoggerDAL.GetLogForUser(userEmail);

                Guna2DataGridView gridView = this.tab_userLogs.SelectedTab.Controls[userEmail + "_logview"] as Guna2DataGridView;
                gridView.DataSource = logsForUser.ToDataTable();
            }

            InitTimer();
        }