Пример #1
0
        internal void SelectPreviouslySelectedPendingChanges(
            List <ChangeInfo> changesToSelect)
        {
            List <int> idsToSelect = new List <int>();

            foreach (ChangeInfo change in changesToSelect)
            {
                int changeId = GetTreeIdForItem(change);

                if (changeId == -1)
                {
                    continue;
                }

                idsToSelect.Add(changeId);
            }

            mIsSelectionChangedEventDisabled = true;
            try
            {
                TableViewOperations.SetSelectionAndScroll(
                    this, idsToSelect);
            }
            finally
            {
                mIsSelectionChangedEventDisabled = false;
            }
        }
Пример #2
0
        internal void SelectFirstPendingChangeOnTree()
        {
            int treeIdFirstItem = GetTreeIdFirstItem();

            if (treeIdFirstItem == -1)
            {
                return;
            }

            TableViewOperations.SetSelectionAndScroll(
                this, new List <int> {
                treeIdFirstItem
            });
        }
Пример #3
0
        internal void SelectRepObjectInfos(
            List <RepObjectInfo> repObjectsToSelect)
        {
            List <int> idsToSelect = new List <int>();

            foreach (RepObjectInfo repObjectInfo in repObjectsToSelect)
            {
                int repObjectInfoId = GetTreeIdForItem(repObjectInfo);

                if (repObjectInfoId == -1)
                {
                    continue;
                }

                idsToSelect.Add(repObjectInfoId);
            }

            TableViewOperations.SetSelectionAndScroll(this, idsToSelect);
        }
Пример #4
0
        internal void SelectFirstPendingChangeOnTree()
        {
            int treeIdFirstItem = GetTreeIdFirstItem();

            if (treeIdFirstItem == -1)
            {
                return;
            }

            mIsSelectionChangedEventDisabled = true;

            try
            {
                TableViewOperations.SetSelectionAndScroll(
                    this, new List <int> {
                    treeIdFirstItem
                });
            }
            finally
            {
                mIsSelectionChangedEventDisabled = false;
            }
        }