コード例 #1
0
ファイル: CommitCommand.cs プロジェクト: kzu/guit
 public CommitCommand(IEventStream eventStream, MainThread mainThread, IGitRepository repository, IChangesView view)
 {
     this.eventStream = eventStream;
     this.mainThread  = mainThread;
     this.repository  = repository;
     this.view        = view;
 }
コード例 #2
0
        /// <inheritdoc />
        public IChangesPresenter AssignChangesPresenter(IChangesView view)
        {
            var presenter = new ChangesPresenter(view, m_Model.ConstructChangesModel(), m_Model);

            view.Presenter = presenter;
            return(presenter);
        }
コード例 #3
0
ファイル: AmendCommitCommandTests.cs プロジェクト: kzu/guit
 public AmendCommitCommandTests()
 {
     eventStream = Mock.Of <IEventStream>();
     repository  = Mock.Of <IGitRepository>(x => x.Config == Mock.Of <LibGit2Sharp.Configuration>());
     mainThread  = Mock.Of <MainThread>();
     view        = Mock.Of <IChangesView>();
 }
コード例 #4
0
        public ChangesPresenter(IChangesView view)
        {
            _view = view;

            _view.Commit += OnCommit;
            _view.CommitMessageChanged += OnCommitMessageChanged;
            _view.SelectedActionChanged += OnSelectedActionChanged;
        }
コード例 #5
0
        public ChangesPresenter(IChangesView view)
        {
            _view = view;

            _view.Commit += OnCommit;
            _view.CommitMessageChanged  += OnCommitMessageChanged;
            _view.SelectedActionChanged += OnSelectedActionChanged;
        }
コード例 #6
0
        public SourceControlPanel(IBranchesView branchesView, IChangesView changesView, IUnsyncedCommitsView commitsView, ISettingsView settingsView, IFailedMessageView failedActionView)
            :this()
        {
            SecondaryPanelVisible = false;

            ((Control)branchesView).Dock = DockStyle.Fill;
            ((Control)changesView).Dock = DockStyle.Fill;
            ((Control)commitsView).Dock = DockStyle.Fill;
            ((Control)settingsView).Dock = DockStyle.Fill;

            ((Control)failedActionView).Dock = DockStyle.Fill;

            this.BranchesTab.Controls.Add((Control)branchesView);
            this.ChangesTab.Controls.Add((Control)changesView);
            this.UnsyncedCommitsTab.Controls.Add((Control)commitsView);
            this.SettingsTab.Controls.Add((Control)settingsView);

            this.MainContainer.Panel1.Controls.Add((Control)failedActionView);

            SetText();
        }
コード例 #7
0
        public SourceControlPanel(IBranchesView branchesView, IChangesView changesView, IUnsyncedCommitsView commitsView, ISettingsView settingsView, IFailedMessageView failedActionView)
            : this()
        {
            SecondaryPanelVisible = false;

            ((Control)branchesView).Dock = DockStyle.Fill;
            ((Control)changesView).Dock  = DockStyle.Fill;
            ((Control)commitsView).Dock  = DockStyle.Fill;
            ((Control)settingsView).Dock = DockStyle.Fill;

            ((Control)failedActionView).Dock = DockStyle.Fill;

            this.BranchesTab.Controls.Add((Control)branchesView);
            this.ChangesTab.Controls.Add((Control)changesView);
            this.UnsyncedCommitsTab.Controls.Add((Control)commitsView);
            this.SettingsTab.Controls.Add((Control)settingsView);

            this.MainContainer.Panel1.Controls.Add((Control)failedActionView);

            SetText();
        }
コード例 #8
0
 public ChangesPresenter([NotNull] IChangesView view, [NotNull] IChangesModel model, [NotNull] IMainModel mainModel)
 {
     m_View      = view;
     m_Model     = model;
     m_MainModel = mainModel;
 }
コード例 #9
0
 public ChangesPresenter(IChangesView view, ISourceControlProvider provider)
     :this(view)
 {
     this.Provider = provider;
 }
コード例 #10
0
 public AmendCommitCommand(IEventStream eventStream, MainThread mainThread, IGitRepository repository, IChangesView changes)
     : base(eventStream, mainThread, repository, changes)
 {
     this.repository = repository;
 }
 public TestableChangesPresenter([NotNull] IChangesView view, [NotNull] IChangesModel model, [NotNull] IMainModel mainModel)
     : base(view, model, mainModel)
 {
 }
コード例 #12
0
 public ChangesPresenter(IChangesView view, ISourceControlProvider provider)
     : this(view)
 {
     this.Provider = provider;
 }
コード例 #13
0
 public ChangesPresenter(IChangesView view, IChangesModel model, IMainModel mainModel)
 {
     m_View      = view;
     m_Model     = model;
     m_MainModel = mainModel;
 }