Example #1
0
 /// <summary>
 /// Konstruktor
 /// </summary>
 public LogMessageItem(
     LogFileConnection connection,
     int index,
     string name,
     DateTime timestamp,
     MessageDirection direction,
     ArbitrationIdType type,
     uint arbitrationId,
     bool remote,
     byte[] data,
     string documentation,
     string description
     )
 {
     _connection    = connection;
     Index          = index;
     Name           = name;
     Timestamp      = timestamp;
     Direction      = direction;
     Type           = type;
     Remote         = remote;
     ArbitrationId  = arbitrationId;
     Data           = data;
     _documentation = documentation;
     _description   = description;
 }
Example #2
0
 /// <summary>
 /// Konsturkor létező log betöltéséhez.
 /// </summary>
 public LogFileItem(string path)
 {
     _connection = new LogFileConnection(path);
     Statistics  = new LogFileMessageStatistics(_connection);
     Messages    = new LogFileMessageCollection(_connection, Statistics);
     Info        = new LogFileInfo(_connection);
 }
Example #3
0
        /// <summary>
        /// Konstruktor új log létrehozásához.
        /// </summary>
        public LogFileItem(string location, string projectName, string fileName)
        {
            var path = GetNewPath(location, projectName, fileName);

            SQLiteConnection.CreateFile(path);
            var item = new LogFileItem(path);

            _connection = new LogFileConnection(path);
            Statistics  = new LogFileMessageStatistics(_connection);
            Messages    = new LogFileMessageCollection(_connection, Statistics);
            Info        = new LogFileInfo(_connection);

            item.Messages.Create();
            item.Info.Create();
            item.Info.Init();
        }
Example #4
0
 /// <summary>
 /// Konstruktor
 /// </summary>
 public LogFileMessageCollection(LogFileConnection connection, ILogFileMessageStatistics statistics)
 {
     _connection   = connection;
     _statistics   = statistics;
     SelectedItems = new List <ILogMessageItem>();
 }
Example #5
0
 /// <summary>
 /// Konstruktor.
 /// </summary>
 /// <param name="connection">Connection</param>
 public LogFileInfo(LogFileConnection connection)
 {
     _connection = connection;
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="connection"></param>
 public LogFileMessageStatistics(LogFileConnection connection)
 {
     _connection = connection;
 }