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); } }
// コンストラクタ 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); } }