コード例 #1
0
        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;
        }
コード例 #2
0
 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;
 }