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); _syncContext.Post(S => _logItems.Insert(0, item), null); SelectedLogItem = item; return(item); }
public FFmpegLogItem CreateNew(string Name, string Args) { var item = new FFmpegLogItem(Name, Args, _clipboardService); item.RemoveRequested += () => _logItems.Remove(item); void Insert() { _logItems.Insert(0, item); } if (_syncContext != null) { _syncContext.Post(S => Insert(), null); } else { Insert(); } SelectedLogItem = item; return(item); }
public void Remove(FFmpegLogItem Item) { _logItems.Remove(Item); }