private void btn_clearLog_Click(object sender, EventArgs e) { string userEmail = this.tab_userLogs.SelectedTab.Name; LoggerDAL.ClearLogsForUser(userEmail); tab_userLogs_SelectedIndexChanged(sender, e); }