示例#1
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);
 }
示例#2
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();
        }