예제 #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);

            _syncContext.Post(S => _logItems.Insert(0, item), null);

            SelectedLogItem = item;

            return(item);
        }
예제 #3
0
파일: FFmpegLog.cs 프로젝트: id8872/Captura
        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);
        }
예제 #4
0
 public void Remove(FFmpegLogItem Item)
 {
     _logItems.Remove(Item);
 }