Пример #1
0
        public TfsCheckinFailureConflictTypeViewModel()
        {
            m_changesetPairControlVM = new ChangesetPairControlViewModel();
            ChangesetPairControl changesetPairControl = new ChangesetPairControl();

            changesetPairControl.DataContext = m_changesetPairControlVM;

            m_textControlViewModel = new TextBoxControlViewModel();
            TextBoxControl textControl = new TextBoxControl();

            textControl.DataContext = m_textControlViewModel;

            ConflictTypeDescription = Properties.Resources.TfsCheckinFailureConflictTypeDescription;

            ResolutionActionViewModel retryAction = new ResolutionActionViewModel()
            {
                ResolutionActionDescription   = Properties.Resources.TfsCheckinFailureConflictRetryAction,
                ResolutionActionReferenceName = new TfsCheckinFailureRetryAction().ReferenceName,
                IsSelected = true
            };

            RegisterResolutionAction(retryAction);

            ResolutionActionViewModel manualResolveAction = new ResolutionActionViewModel()
            {
                ResolutionActionDescription   = Properties.Resources.UserResolveChangesAction,
                ResolutionActionReferenceName = new TfsCheckinFailureManualResolveAction().ReferenceName,
                UserControl    = changesetPairControl,
                ExecuteCommand = SetChangeSetIDs
            };

            RegisterResolutionAction(manualResolveAction);
        }
Пример #2
0
        public VCContentConflictTypeViewModel()
        {
            m_changesetPairControlVM = new ChangesetPairControlViewModel();
            ChangesetPairControl changesetPairControl = new ChangesetPairControl();

            changesetPairControl.DataContext = m_changesetPairControlVM;

            m_localPathsControlVM = new ListPathsControlViewModel();
            ListPathsControl localPathsControl = new ListPathsControl();

            localPathsControl.DataContext = m_localPathsControlVM;

            m_otherPathsControlVM = new ListPathsControlViewModel();
            ListPathsControl otherPathsControl = new ListPathsControl();

            otherPathsControl.DataContext = m_otherPathsControlVM;

            ConflictTypeDescription = Properties.Resources.VCContentConflictTypeDescription;

            ResolutionActionViewModel takeLocalChangesAction = new ResolutionActionViewModel()
            {
                ResolutionActionDescription   = Properties.Resources.TakeLocalChangesAction,
                ResolutionActionReferenceName = new VCContentConflictTakeLocalChangeAction().ReferenceName,
                UserControl    = localPathsControl,
                ExecuteCommand = SetSelectedLocalPath,
                IsSelected     = true
            };

            ResolutionActionViewModel takeOtherChangesAction = new ResolutionActionViewModel()
            {
                ResolutionActionDescription   = Properties.Resources.TakeOtherChangesAction,
                ResolutionActionReferenceName = new VCContentConflictTakeOtherChangesAction().ReferenceName,
                UserControl    = otherPathsControl,
                ExecuteCommand = SetSelectedOtherPath
            };

            ResolutionActionViewModel userMergeChangesAction = new ResolutionActionViewModel()
            {
                ResolutionActionDescription   = Properties.Resources.UserMergeChangesAction,
                ResolutionActionReferenceName = new VCContentConflictUserMergeChangeAction().ReferenceName,
                UserControl    = changesetPairControl,
                ExecuteCommand = SetChangeSetIDs
            };

            RegisterResolutionAction(takeLocalChangesAction);
            RegisterResolutionAction(takeOtherChangesAction);
            RegisterResolutionAction(userMergeChangesAction);
        }
Пример #3
0
        public VCNamespaceConflictTypeViewModel()
        {
            m_changesetPairControlVM = new ChangesetPairControlViewModel();
            ChangesetPairControl changesetPairControl = new ChangesetPairControl();

            changesetPairControl.DataContext = m_changesetPairControlVM;

            ConflictTypeDescription = Properties.Resources.VCNameSpaceConflictTypeDescription;

            ResolutionActionViewModel userMergeChangesAction = new ResolutionActionViewModel()
            {
                ResolutionActionDescription   = Properties.Resources.UserMergeChangesAction,
                ResolutionActionReferenceName = new VCContentConflictUserMergeChangeAction().ReferenceName,
                UserControl    = changesetPairControl,
                ExecuteCommand = SetChangeSetIDs,
                IsSelected     = true
            };

            RegisterResolutionAction(userMergeChangesAction);
        }