Exemple #1
0
        public TfsHistoryNotFoundConflictTypeViewModel()
        {
            controlViewModel = new TextBoxControlViewModel();
            TextBoxControl textControl = new TextBoxControl();

            textControl.DataContext = controlViewModel;

            ConflictTypeDescription = Properties.Resources.TfsHistoryNotFoundConflictTypeDescription;

            ResolutionActionViewModel suppressHistoryAction = new ResolutionActionViewModel()
            {
                ResolutionActionDescription   = Properties.Resources.SuppressHistoryAction,
                ResolutionActionReferenceName = new TFSHistoryNotFoundSuppressAction().ReferenceName,
                UserControl    = textControl,
                ExecuteCommand = SetChangesetID,
                IsSelected     = true
            };

            RegisterResolutionAction(suppressHistoryAction);

            ResolutionActionViewModel skipHistoryAction = new ResolutionActionViewModel()
            {
                ResolutionActionDescription   = Properties.Resources.SkipHistoryAction,
                ResolutionActionReferenceName = new TFSHistoryNotFoundSkipAction().ReferenceName,
            };

            RegisterResolutionAction(skipHistoryAction);
        }
Exemple #2
0
        public InvalidLabelNameConflictTypeViewModel()
        {
            controlViewModel = new TextBoxControlViewModel();
            TextBoxControl textControl = new TextBoxControl();

            textControl.DataContext = controlViewModel;

            ConflictTypeDescription = Properties.Resources.InvalidLabelNameConflictTypeDescription;

            ResolutionActionViewModel renameLabelAction = new ResolutionActionViewModel()
            {
                ResolutionActionDescription   = Properties.Resources.RenameLabelAction,
                ResolutionActionReferenceName = new VCLabelConflictManualRenameAction().ReferenceName,
                UserControl    = textControl,
                ExecuteCommand = SetNewLabelName,
                IsSelected     = true
            };

            RegisterResolutionAction(renameLabelAction);

            /* Action code is commented out until the conflict handler can handle this for any adaptter via an interface and not just for TFS
             * ResolutionActionViewModel replaceInvalidCharacterAction = new ResolutionActionViewModel()
             * {
             *  ResolutionActionDescription = Properties.Resources.ReplaceInvalidCharacterAction,
             *  ResolutionActionReferenceName = new VCInvalidLabelNameAutomaticRenameAction().ReferenceName,
             * };
             * RegisterResolutionAction(replaceInvalidCharacterAction); */
        }
Exemple #3
0
        public BranchParentNotFoundConflictTypeViewModel()
        {
            m_listPathsControlVM = new ListPathsControlViewModel();
            ListPathsControl control = new ListPathsControl();

            control.DataContext = m_listPathsControlVM;

            ConflictTypeDescription = Properties.Resources.BranchParentNotFoundConflictTypeDescription;

            ResolutionActionViewModel resolveAction = new ResolutionActionViewModel()
            {
                ResolutionActionDescription   = Properties.Resources.ResolveBranchParentAction,
                ResolutionActionReferenceName = new VCChangeToAddOnBranchParentNotFoundAction().ReferenceName,
                IsSelected     = true,
                UserControl    = control,
                ExecuteCommand = SetSelectedPath
            };

            ResolutionActionViewModel retryAction = new ResolutionActionViewModel()
            {
                ResolutionActionDescription   = Properties.Resources.RetryAction,
                ResolutionActionReferenceName = new VCRetryOnBranchParentNotFoundAction().ReferenceName
            };

            RegisterResolutionAction(resolveAction);
            RegisterResolutionAction(retryAction);
        }
Exemple #4
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);
        }
Exemple #5
0
        public VCInvalidPathConflictTypeViewModel()
        {
            ConflictTypeDescription = Properties.Resources.VCInvalidPathConflictTypeDescription;

            ResolutionActionViewModel skipAction = new ResolutionActionViewModel()
            {
                ResolutionActionDescription   = Properties.Resources.SkipAction,
                ResolutionActionReferenceName = new VCInvalidPathSkipAction().ReferenceName,
                IsSelected = true
            };

            RegisterResolutionAction(skipAction);
        }
Exemple #6
0
        public UnchangedContentConflictTypeViewModel()
        {
            ConflictTypeDescription = Properties.Resources.UnChangedContentConflictTypeDescription;

            ResolutionActionViewModel skipMigrationAction = new ResolutionActionViewModel()
            {
                ResolutionActionDescription   = Properties.Resources.SkipMigrationAction,
                ResolutionActionReferenceName = new TFSZeroCheckinSkipAction().ReferenceName,
                IsSelected = true
            };

            RegisterResolutionAction(skipMigrationAction);
        }
Exemple #7
0
        public InvalidShortFilenameFormatConflictTypeViewModel()
        {
            ConflictTypeDescription = Properties.Resources.InvalidShortFilenameFormatConflictTypeDescription;

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

            RegisterResolutionAction(retryAction);
        }
Exemple #8
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);
        }
Exemple #9
0
        public LabelCreationConflictTypeViewModel()
        {
            ConflictTypeDescription = Properties.Resources.LabelCreationConflictTypeDescription;

            ResolutionActionViewModel skipAction = new ResolutionActionViewModel()
            {
                ResolutionActionDescription   = Properties.Resources.SkipAction,
                ResolutionActionReferenceName = new VCLabelCreationConflictSkipAction().ReferenceName,
                IsSelected = true
            };

            ResolutionActionViewModel retryAction = new ResolutionActionViewModel()
            {
                ResolutionActionDescription   = Properties.Resources.RetryAction,
                ResolutionActionReferenceName = new VCLabelCreationConflictRetryAction().ReferenceName
            };

            RegisterResolutionAction(skipAction);
            RegisterResolutionAction(retryAction);
        }
Exemple #10
0
        public TfsCheckinConflictTypeViewModel()
        {
            ConflictTypeDescription = Properties.Resources.TfsCheckinConflictTypeDescription;

            ResolutionActionViewModel autoResolveAction = new ResolutionActionViewModel()
            {
                ResolutionActionDescription   = Properties.Resources.AutoResolveConflict,
                ResolutionActionReferenceName = new TfsCheckinAutoResolveAction().ReferenceName,
                IsSelected = true
            };

            RegisterResolutionAction(autoResolveAction);
            ResolutionActionViewModel skipErrorsAction = new ResolutionActionViewModel()
            {
                ResolutionActionDescription   = Properties.Resources.SkipErrors,
                ResolutionActionReferenceName = new TfsCheckinSkipAction().ReferenceName
            };

            RegisterResolutionAction(skipErrorsAction);
        }
Exemple #11
0
        public VCPathNotMappedConflictTypeViewModel()
        {
            ConflictTypeDescription = Properties.Resources.VCPathNotMappedConflictTypeDescription;

            ResolutionActionViewModel changeToAddAction = new ResolutionActionViewModel()
            {
                ResolutionActionDescription   = Properties.Resources.ChangeToAddAction,
                ResolutionActionReferenceName = new VCChangeToAddOnBranchSourceNotMappedAction().ReferenceName,
                IsSelected = true
            };

            ResolutionActionViewModel addPathToMappingAction = new ResolutionActionViewModel()
            {
                ResolutionActionDescription   = Properties.Resources.AddPathToMappingAction,
                ResolutionActionReferenceName = new VCAddPathToMappingAction().ReferenceName
            };

            RegisterResolutionAction(changeToAddAction);
            RegisterResolutionAction(addPathToMappingAction);
        }
Exemple #12
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);
        }
Exemple #13
0
        public TfsItemNotFoundConflictTypeViewModel()
        {
            ConflictTypeDescription = Properties.Resources.TfsItemNotFoundConflictTypeDescription;

            ResolutionActionViewModel skipMigrationAction = new ResolutionActionViewModel()
            {
                ResolutionActionDescription   = Properties.Resources.SkipMigrationAction,
                ResolutionActionReferenceName = new TfsItemNotFoundSkipAction().ReferenceName,
                IsSelected = true
            };

            ResolutionActionViewModel retryAction = new ResolutionActionViewModel()
            {
                ResolutionActionDescription   = Properties.Resources.RetryManualAction,
                ResolutionActionReferenceName = new TfsItemNotFoundRetryAction().ReferenceName
            };

            RegisterResolutionAction(skipMigrationAction);
            RegisterResolutionAction(retryAction);
        }
Exemple #14
0
        public VCMissingItemConflictTypeViewModel()
        {
            ConflictTypeDescription = Properties.Resources.VCMissingItemConflictTypeDescription;

            //ResolutionActionViewModel skipAction = new ResolutionActionViewModel()
            //{
            //    ResolutionActionDescription = Properties.Resources.SkipAction,
            //    ResolutionActionReferenceName = new ().ReferenceName,
            //    IsSelected = true
            //};

            ResolutionActionViewModel retryAction = new ResolutionActionViewModel()
            {
                ResolutionActionDescription   = Properties.Resources.RetryManualAddAction,
                ResolutionActionReferenceName = new VCMissingItemRetryAction().ReferenceName
            };

            //RegisterResolutionAction(skipAction);
            RegisterResolutionAction(retryAction);
        }
Exemple #15
0
        public DuplicateLabelNameConflictTypeViewModel()
        {
            controlViewModel = new TextBoxControlViewModel();
            TextBoxControl textControl = new TextBoxControl();

            textControl.DataContext = controlViewModel;

            ConflictTypeDescription = Properties.Resources.DuplicateLabelNameConflictTypeDescription;

            ResolutionActionViewModel renameLabelAction = new ResolutionActionViewModel()
            {
                ResolutionActionDescription   = Properties.Resources.RenameLabelAction,
                ResolutionActionReferenceName = new VCLabelConflictManualRenameAction().ReferenceName,
                UserControl    = textControl,
                ExecuteCommand = SetNewLabelName,
                IsSelected     = true
            };

            RegisterResolutionAction(renameLabelAction);

            /* No Automatic Rename label action??? */
        }
Exemple #16
0
 public void RegisterResolutionAction(ResolutionActionViewModel resolutionAction)
 {
     m_resolutionActions.Add(resolutionAction);
 }