/// <summary> /// Loads the type of the logs by message. /// </summary> /// <param name="messageType">Type of the message.</param> private void LoadLogsByMessageType(string messageType) { Query query = new Query(Log.Schema.TableName) .WHERE(Log.Columns.MessageType, Comparison.Equals, messageType) .ORDER_BY(Log.Columns.LogDate, "DESC"); LogCollection logCollection = new LogController().FetchByQuery(query); BindLogCollection(logCollection); }
/// <summary> /// Loads the error logs. /// </summary> private void LoadErrorLogs() { Query query = new Query(Log.Schema.TableName) .ORDER_BY(Log.Columns.LogDate, "DESC"); LogCollection logCollection = new LogController().FetchByQuery(query); BindLogCollection(logCollection); }