Example #1
0
        internal int MovePPTDown()
        {
            var i = FilesToMerge.IndexOf(FilesToMerge_Selected);

            if (i >= 0 && i < (FilesToMerge.Count - 1))   // -1 bc. at the last position you cannot go further down
            {
                var selected = FilesToMerge_Selected;
                FilesToMerge.RemoveAt(i);
                FilesToMerge.Insert(i + 1, selected);
                i++;
            }
            return(i);
        }
Example #2
0
        internal int MovePPTUp()
        {
            var i = FilesToMerge.IndexOf(FilesToMerge_Selected);

            if (i > 0)
            {
                var selected = FilesToMerge_Selected;
                FilesToMerge.RemoveAt(i);
                FilesToMerge.Insert(i - 1, selected);
                i--;
            }
            return(i);
        }