public FFmpegLogItem CreateNew(string Name, string Args) { var item = new FFmpegLogItem(Name, Args); _logItems.Insert(0, item); return(item); }
public FFmpegLogItem CreateNew(string name) { var item = new FFmpegLogItem(name, _clipboardService); item.RemoveRequested += () => _logItems.Remove(item); void Insert() { _logItems.Insert(0, item); } if (_syncContext != null) { _syncContext.Post(state => Insert(), null); } else { Insert(); } SelectedLogItem = item; return(item); }
public void Remove(FFmpegLogItem Item) { _logItems.Remove(Item); }