Example #1
0
        void ShiftLeft(int value)
        {
            var index = model.Montage.Chunks.FindIndex(model.WindowState.CurrentPosition);

            if (index == -1)
            {
                return;
            }
            model.ShiftLeftChunkBorder(index, value);
            model.WindowState.CurrentPosition = model.Montage.Chunks[index].StartTime;
        }
Example #2
0
        void Shift(int borderIndex, int shiftSize)
        {
            if (borderIndex == -1)
            {
                return;
            }
            var border = montage.Borders[borderIndex];

            model.ShiftLeftChunkBorder(border.RightChunk, shiftSize);
            GenerateBorders();
            model.WindowState.CurrentPosition = montage.Borders[borderIndex].StartTime;
            if (montage.Borders[borderIndex].IsLeftBorder)
            {
                model.WindowState.SpeedRatio = 1;
            }
            model.OnMontageModelChanged();
        }