public UnsyncedCommitsPresenter(IUnsyncedCommitsView view) { _view = view; _view.Sync += OnSync; _view.Fetch += OnFetch; _view.Pull += OnPull; _view.Push += OnPush; }
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(); }