Esempio n. 1
0
        public LogView(LogStorage storage, int lastLine)
        {
            if (storage == null)
            {
                throw new ArgumentNullException(nameof(storage));
            }
            if (lastLine < 0 || lastLine > storage.Count)
            {
                throw new ArgumentOutOfRangeException(nameof(lastLine));
            }

            this.Storage  = storage;
            this.LastLine = lastLine;
        }
Esempio n. 2
0
 public LogView(LogStorage storage)
     : this(storage, 0)
 {
 }