Exemplo 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;
        }
Exemplo n.º 2
0
 public LogView(LogStorage storage)
     : this(storage, 0)
 {
 }