Esempio n. 1
0
        public void RemoveChunk()
        {
            var position = WindowState.CurrentPosition;
            var index    = Montage.Chunks.FindChunkIndex(position);

            if (index == -1)
            {
                return;
            }
            var chunk = Montage.Chunks[index];

            chunk.Mode = Mode.Undefined;
            if (index != Montage.Chunks.Count - 1 && Montage.Chunks[index + 1].Mode == Mode.Undefined)
            {
                chunk.Length += Montage.Chunks[index + 1].Length;
                Montage.Chunks.RemoveAt(index + 1);
            }
            if (index != 0 && Montage.Chunks[index - 1].Mode == Mode.Undefined)
            {
                chunk.StartTime = Montage.Chunks[index - 1].StartTime;
                chunk.Length   += Montage.Chunks[index - 1].Length;
                Montage.Chunks.RemoveAt(index - 1);
            }
            Montage.SetChanged();
        }
Esempio n. 2
0
        public void NewEpisodeHere()
        {
            var index = Montage.Chunks.FindChunkIndex(WindowState.CurrentPosition);

            if (index != -1)
            {
                Montage.Chunks[index].StartsNewEpisode = !Montage.Chunks[index].StartsNewEpisode;
                Montage.SetChanged();
            }
        }
Esempio n. 3
0
 public void SetChunkMode(Mode mode, bool ctrl)
 {
     SetChunkMode(WindowState.CurrentPosition, mode, ctrl);
     Montage.SetChanged();
 }