Example #1
0
        public BranchesPresenter
        (
            IBranchesView view,
            ICreateBranchView createView,
            IDeleteBranchView deleteView,
            IMergeView mergeView
        )
        {
            _view       = view;
            _createView = createView;
            _deleteView = deleteView;
            _mergeView  = mergeView;

            _view.CreateBranch          += OnShowCreateBranchView;
            _view.DeleteBranch          += OnShowDeleteBranchView;
            _view.Merge                 += OnShowMerge;
            _view.SelectedBranchChanged += OnSelectedBranchChanged;

            _createView.Confirm += OnCreateBranch;
            _createView.Cancel  += OnCreateViewCancel;
            _createView.UserInputTextChanged += OnCreateBranchTextChanged;

            _deleteView.Confirm          += OnDeleteBranch;
            _deleteView.Cancel           += OnDeleteViewCancel;
            _deleteView.SelectionChanged += OnDeleteViewSelectionChanged;

            _mergeView.Confirm            += OnMerge;
            _mergeView.Cancel             += OnCancelMerge;
            _mergeView.MergeStatusChanged += OnMergeStatusChanged;
        }
        public BranchesPresenter
            (
                IBranchesView view,
                ICreateBranchView createView,
                IDeleteBranchView deleteView,
                IMergeView mergeView
            )
        {
            _view = view;
            _createView = createView;
            _deleteView = deleteView;
            _mergeView = mergeView;

            _view.CreateBranch += OnShowCreateBranchView;
            _view.DeleteBranch += OnShowDeleteBranchView;
            _view.Merge += OnShowMerge;
            _view.SelectedBranchChanged += OnSelectedBranchChanged;

            _createView.Confirm += OnCreateBranch;
            _createView.Cancel += OnCreateViewCancel;
            _createView.UserInputTextChanged += OnCreateBranchTextChanged;

            _deleteView.Confirm += OnDeleteBranch;
            _deleteView.Cancel += OnDeleteViewCancel;
            _deleteView.SelectionChanged += OnDeleteViewSelectionChanged;

            _mergeView.Confirm += OnMerge;
            _mergeView.Cancel += OnCancelMerge;
            _mergeView.MergeStatusChanged += OnMergeStatusChanged;
        }
Example #3
0
 public BranchesPresenter
 (
     IBranchesView view,
     ICreateBranchView createView,
     IDeleteBranchView deleteView,
     IMergeView mergeView,
     ISourceControlProvider provider
 )
     : this(view, createView, deleteView, mergeView)
 {
     this.Provider = provider;
 }
 public BranchesPresenter
     (            
         IBranchesView view,
         ICreateBranchView createView,
         IDeleteBranchView deleteView,
         IMergeView mergeView,
         ISourceControlProvider provider
     )
     :this(view, createView, deleteView, mergeView)
 {
     this.Provider = provider;
 }