public LogEntryViewModel(LogEntry logEntry)
        {
            if (logEntry == null)
            {
                throw new ArgumentNullException("LogEntry");
            }

            _logEntry = logEntry;
        }
        public void AddLogEntry(LogEntry logEntry)
        {
            if (logEntry == null)
            {
                throw new ArgumentNullException("logEntry");
            }

            _logEntries.Add(logEntry);

            RaisePropertyChanged("NumEntriesLoaded");

            if (LogEntryAdded != null)
            {
                LogEntryAdded(this, new LogEntryAddedEventArgs(logEntry));
            }
        }
 public LogEntryAddedEventArgs(LogEntry newLogEntry)
 {
     NewLogEntry = newLogEntry;
 }