public void Page_Load(Object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         LogEvents        = CFLogger.GetLast30Exceptions();
         LogLV.DataSource = LogEvents;
         LogLV.DataBind();
     }
 }
Пример #2
0
        /// <summary>
        ///
        /// </summary>
        private void RenderLogs(List <LogEvent> logEvents)
        {
            logEvents.Reverse();
            LogLV.DataSource = logEvents;
            LogLV.DataBind();

            if (logEvents.Count > 0)
            {
                EventDescriptionLb.Text = string.Format("{0} {1}",
                                                        logEvents[0].EventDateTime.GetAgoString(), logEvents[0].Name);
            }
            else
            {
                EventDescriptionLb.Text = "No events matching criteria";
            }
        }