Ejemplo n.º 1
0
        public MergeConflictResolverPresenter(
            IMergeConflictResolverView view,
            IObjectBaseSummaryPresenter mergeObjectBaseSummaryPresenter,
            IObjectBaseSummaryPresenter targetObjectBaseSummaryPresenter, IUserSettings userSettings) : base(view)
        {
            _conflictOption = MergeConflictOptions.SkipOnce;

            _mergeObjectBaseSummaryPresenter  = mergeObjectBaseSummaryPresenter;
            _targetObjectBaseSummaryPresenter = targetObjectBaseSummaryPresenter;
            _userSettings = userSettings;

            AddSubPresenters(_mergeObjectBaseSummaryPresenter, _targetObjectBaseSummaryPresenter);
        }
 public static bool Is(this MergeConflictOptions option, MergeConflictOptions optionToCompare)
 {
     return((option & optionToCompare) != 0);
 }
 public static bool IsAutoRename(this MergeConflictOptions option)
 {
     return(option.Is(MergeConflictOptions.AutoRename));
 }
 /// <summary>
 /// Tests if the option is meant as skip or leave the existing element
 /// </summary>
 /// <returns>True if Skip or SkipAll, otherwise false</returns>
 public static bool IsSkip(this MergeConflictOptions option)
 {
     return(option.Is(MergeConflictOptions.Skip));
 }
 /// <summary>
 /// Tests if the option is meant as merge two conflicting elements
 /// </summary>
 /// <returns>True if Merge or MergeAll, otherwise false</returns>
 public static bool IsMerge(this MergeConflictOptions option)
 {
     return(option.Is(MergeConflictOptions.Merge));
 }
 /// <summary>
 /// Tests if the option is meant as replace the existing
 /// </summary>
 /// <returns>True if Replace or ReplaceAll, otherwise false</returns>
 public static bool IsReplace(this MergeConflictOptions option)
 {
     return(option.Is(MergeConflictOptions.Replace));
 }
 /// <summary>
 /// Tests if the given option is meant to be used for all subsequent instances of the merge conflict
 /// </summary>
 /// <returns></returns>
 public static bool IsAppliedToAll(this MergeConflictOptions option)
 {
     return(option.Is(MergeConflictOptions.AppliesToAll));
 }
Ejemplo n.º 8
0
 public void SetConflictResolution(MergeConflictOptions option)
 {
     _conflictOption = option;
     _view.CloseView();
 }