private void BtnClearClick(Object sender, EventArgs e) { var objLoggingController = new LogController(); objLoggingController.ClearLog(); UI.Skins.Skin.AddModuleMessage(this, Localization.GetString("LogCleared", LocalResourceFile), ModuleMessage.ModuleMessageType.GreenSuccess); var objEventLog = new EventLogController(); //add entry to log recording it was cleared objEventLog.AddLog(Localization.GetString("LogCleared", LocalResourceFile), Localization.GetString("Username", LocalResourceFile) + ":" + UserInfo.Username, PortalSettings, -1, EventLogController.EventLogType.ADMIN_ALERT); BindPortalDropDown(); dlLog.Visible = false; btnDelete.Visible = false; btnClear.Visible = false; ctlPagingControlBottom.Visible = false; }
protected void btnClear_Click( Object sender, EventArgs e ) { LogController objLoggingController = new LogController(); objLoggingController.ClearLog(); UI.Skins.Skin.AddModuleMessage( this, Localization.GetString( "LogCleared", this.LocalResourceFile ), ModuleMessageType.GreenSuccess ); BindPortalDropDown(); dlLog.Visible = false; pnlSendExceptions.Visible = false; btnDelete.Visible = false; btnClear.Visible = false; pnlOptions.Visible = false; pnlLegend.Visible = false; tblInstructions.Visible = false; }