Ejemplo n.º 1
0
 public LogItemViewModel(LogItem logItem, ILogItemViewModelFactory logItemViewModelFactory)
 {
     this.logItem = logItem;
     this.logItemViewModelFactory = logItemViewModelFactory;
     Children = logItem.Children.Select(logItemViewModelFactory.Create).ToList();
 }
 public ILogItemViewModel Create(LogItem logItem)
 {
     return createModelFunc(logItem);
 }
Ejemplo n.º 3
0
        public void CreateLogItem(LogItemCategory logItemCategory, string description, Screenshot screenshot = null)
        {
            LogItem logItem = new LogItem();
            logItem.StartTime = DateTime.Now;
            logItem.Description = description;
            logItem.Category = logItemCategory;
            logItem.Screenshot = screenshot;

            currentLogItems.Add(logItem);
        }