コード例 #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;
 }
コード例 #2
0
ファイル: LogFileItem.cs プロジェクト: marrob/MCAN120803.SW
 /// <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);
 }
コード例 #3
0
ファイル: LogFileItem.cs プロジェクト: marrob/MCAN120803.SW
        /// <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();
        }
コード例 #4
0
 /// <summary>
 /// Konstruktor
 /// </summary>
 public LogFileMessageCollection(LogFileConnection connection, ILogFileMessageStatistics statistics)
 {
     _connection   = connection;
     _statistics   = statistics;
     SelectedItems = new List <ILogMessageItem>();
 }
コード例 #5
0
ファイル: LogFileInfo.cs プロジェクト: marrob/MCAN120803.SW
 /// <summary>
 /// Konstruktor.
 /// </summary>
 /// <param name="connection">Connection</param>
 public LogFileInfo(LogFileConnection connection)
 {
     _connection = connection;
 }
コード例 #6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="connection"></param>
 public LogFileMessageStatistics(LogFileConnection connection)
 {
     _connection = connection;
 }