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;
            }
        }
Esempio n. 2
0
        internal void SelectFirstPendingChangeOnTree()
        {
            int treeIdFirstItem = GetTreeIdFirstItem();

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

            TableViewOperations.SetSelectionAndScroll(
                this, new List <int> {
                treeIdFirstItem
            });
        }
Esempio n. 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);
        }
        internal void SelectFirstPendingChangeOnTree()
        {
            int treeIdFirstItem = GetTreeIdFirstItem();

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

            mIsSelectionChangedEventDisabled = true;

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