private void AddEnd() { if (selectedRow != -1 && selectedRow < Cuts.GetCollection().Count()) { Cuts.GetCollection().ElementAt <Cut>(selectedRow).End = new TimeSpan(0, VideoViewer.currentTime.Hours, VideoViewer.currentTime.Minutes, VideoViewer.currentTime.Seconds); } }
private void AddBegin() { if (selectedRow != -1 && selectedRow < Cuts.GetCollection().Count()) { //needs to be improve (the static public currentTime) Cuts.GetCollection().ElementAt <Cut>(selectedRow).Begin = new TimeSpan(0, VideoViewer.currentTime.Hours, VideoViewer.currentTime.Minutes, VideoViewer.currentTime.Seconds); } }
/* * Use to get the observable cut collection */ public ObservableCollection <Cut> BindGetCollection() { // System.Diagnostics.Debug.WriteLine("Instance: " + Cuts.GetCollection().ElementAt(0).Name); return(Cuts.GetCollection()); }