コード例 #1
0
        public UnsyncedCommitsPresenter(IUnsyncedCommitsView view)
        {
            _view = view;

            _view.Sync += OnSync;
            _view.Fetch += OnFetch;
            _view.Pull += OnPull;
            _view.Push += OnPush;
        }
コード例 #2
0
        public UnsyncedCommitsPresenter(IUnsyncedCommitsView view)
        {
            _view = view;

            _view.Sync  += OnSync;
            _view.Fetch += OnFetch;
            _view.Pull  += OnPull;
            _view.Push  += OnPush;
        }
コード例 #3
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();
        }
コード例 #4
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();
        }