public CommitCommand(IEventStream eventStream, MainThread mainThread, IGitRepository repository, IChangesView view) { this.eventStream = eventStream; this.mainThread = mainThread; this.repository = repository; this.view = view; }
/// <inheritdoc /> public IChangesPresenter AssignChangesPresenter(IChangesView view) { var presenter = new ChangesPresenter(view, m_Model.ConstructChangesModel(), m_Model); view.Presenter = presenter; return(presenter); }
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>(); }
public ChangesPresenter(IChangesView view) { _view = view; _view.Commit += OnCommit; _view.CommitMessageChanged += OnCommitMessageChanged; _view.SelectedActionChanged += OnSelectedActionChanged; }
public ChangesPresenter(IChangesView view) { _view = view; _view.Commit += OnCommit; _view.CommitMessageChanged += OnCommitMessageChanged; _view.SelectedActionChanged += OnSelectedActionChanged; }
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(); }
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(); }
public ChangesPresenter([NotNull] IChangesView view, [NotNull] IChangesModel model, [NotNull] IMainModel mainModel) { m_View = view; m_Model = model; m_MainModel = mainModel; }
public ChangesPresenter(IChangesView view, ISourceControlProvider provider) :this(view) { this.Provider = provider; }
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) { }
public ChangesPresenter(IChangesView view, ISourceControlProvider provider) : this(view) { this.Provider = provider; }
public ChangesPresenter(IChangesView view, IChangesModel model, IMainModel mainModel) { m_View = view; m_Model = model; m_MainModel = mainModel; }