Exemple #1
0
        private void ReorderIssuesInNewList(bool previtem, int prevItemId, int nextItemId, int currentItemIndex, ref Issue issue, ref List <Issue> issues)
        {
            var dragDropContext = DragDropFactory.GetDragDropManager(CheckIfIssueIsInBottomHalfOfList(currentItemIndex, issues.Count), _issuesEngine);

            dragDropContext.DetermineNewIssueOrder(previtem, prevItemId, nextItemId, ref issue);
            dragDropContext.ReorderIssues(currentItemIndex, ref issue, ref issues);
        }
Exemple #2
0
        public SegmentsDrawerControl()
        {
            InitializeComponent();

            DragDropFactory.SetDrag(SegmentsGrid, CanDrag);
            DragDropFactory.SetDrop(SegmentsGrid, CanDrop, DoDrop);
        }