Ejemplo n.º 1
0
        private void EditTrimming(int index)
        {
            if (index < 0 || mList.Count <= index)
            {
                return;
            }
            var item = mList[index];
            var path = WfTrimmingPlayer.GetRefPath(item, null, false);

            if (null == path)
            {
                return;
            }
            var dlg = new WfTrimmingPlayer(item, path);

            dlg.ShowDialog();
            if (dlg.Result != null)
            {
                mList.RemoveAt(index);
                mList.Insert(index, (WfFileItem.Trim)dlg.Result);
            }
        }
Ejemplo n.º 2
0
            // コンストラクタ
            public TrimViewModel(ITrim trim, string videoPath, IWfSourceList sourceList, WfTrimmingPlayer owner)
            {
                mOwner = new WeakReference <WfTrimmingPlayer>(owner);

                InitializeProperties();
                VideoPath  = videoPath;
                SourceList = sourceList;

                if (null != trim)
                {
                    OriginalTrim = trim;
                    SetTrimSettingsWith(trim);
                }
            }