예제 #1
0
        public FFmpegLogItem CreateNew(string Name, string Args)
        {
            var item = new FFmpegLogItem(Name, Args);

            _logItems.Insert(0, item);

            return(item);
        }
예제 #2
0
        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);
        }
예제 #3
0
 public void Remove(FFmpegLogItem Item)
 {
     _logItems.Remove(Item);
 }