public EventReportViewModel(SystemLog systemLog, DateTime? endDateTime,bool isAdditional) { if (systemLog == null) throw new ArgumentException("systemLog must be not null"); if(_isAdditional && endDateTime==null) throw new ArgumentException(""); _event = systemLog; EndOfCycle = endDateTime; _isAdditional = isAdditional; }
public void UpdateModel(SystemLog updatedModel) { var handler = RecordUpdated; if(handler!=null) handler.Invoke(this, updatedModel); }