Beispiel #1
0
        private void SyncCSSNodeChanges(XmlDocument cssNodeChangesDoc, bool disableAreaPathSync, bool disableIterationPathSync)
        {
            CSSAdapter adapter = new CSSAdapter(m_migrationSource.WorkItemStore.Core.Css, m_configurationService.SourceId);
            var        store   = m_migrationSource.WorkItemStore;

            adapter.SyncCSSNodeChanges(store.WorkItemStore.Projects[store.TeamProject], cssNodeChangesDoc, m_conflictManagementService);
        }
        private void AddCSSNodeChanges(ChangeGroup group)
        {
            m_hwmCSSMaxSeqId.Reload();
            int startSeqId = m_hwmCSSMaxSeqId.Value > 0 ? m_hwmCSSMaxSeqId.Value : 0;

            CSSAdapter cssAdapter = new CSSAdapter(m_migrationSource.WorkItemStore.Core.Css, m_configurationService.SourceId);

            Project     p = m_migrationSource.WorkItemStore.WorkItemStore.Projects[m_migrationSource.WorkItemStore.Core.Config.Project];
            int         maxSeqId;
            XmlDocument changes = cssAdapter.GetTeamProjectSpecificCSSNodeChanges(p, startSeqId, out maxSeqId);

            if (null != changes)
            {
                group.CreateAction(
                    WellKnownChangeActionId.SyncContext,
                    new WorkItemContextSyncMigrationItem(s_CssNodeChangesContentType),
                    s_CssNodeChangesContentType.FriendlyName,
                    "",
                    "0",
                    "",
                    s_CssNodeChangesContentType.ReferenceName,
                    changes);
            }

            if (maxSeqId > startSeqId)
            {
                m_hwmCSSMaxSeqId.Update(maxSeqId);
            }
        }