Beispiel #1
0
        private void LaunchHistory(IList <object> changeIds)
        {
            if (changeIds.Count < 1)
            {
                return;
            }

            var historyWindow = (HistoryWindow)this.FindForm();

            if (historyWindow != null)
            {
                var ancestor = (TabbedMain)historyWindow.ParentForm;
                if (ancestor != null)
                {
                    foreach (var changeId in changeIds)
                    {
                        var id = changeId;
                        ancestor.AddComponent((tr, sor, shr, br) =>
                        {
                            var result = new RevisionBrowser(tr, sor, shr, br)
                            {
                                BranchId = id,
                                Title    = id.ToString(),
                            };
                            return(result);
                        });
                    }
                }
            }
        }
        public BranchBrowser(ITaskRepository taskRepository, ISourceRepository sourceRepository, IShelvesetRepository shelvesetRepository, IBuildRepository buildRepository)
            : base(taskRepository, sourceRepository, shelvesetRepository, buildRepository)
        {
            _revisionBrowser = new RevisionBrowser(_taskRepository, _sourceRepository, _shelvesetRepository, _buildRepository);
            _changeCommitter = new ChangeCommitter(_taskRepository, _sourceRepository, _shelvesetRepository, _buildRepository);

            InitializeComponent();
            branchGrid.Grid.MultiSelect = false;
            this.ExecuteLater(10, () => SwitchCurrentTab(true));
        }
Beispiel #3
0
        public BranchBrowser
            (ITaskRepository taskRepository, ISourceRepository sourceRepository, IShelvesetRepository shelvesetRepository, IBuildRepository buildRepository)
            : base(taskRepository, sourceRepository, shelvesetRepository, buildRepository)
        {
            _revisionBrowser = new RevisionBrowser(_taskRepository, _sourceRepository, _shelvesetRepository, _buildRepository);
            _changeCommitter = new ChangeCommitter(_taskRepository, _sourceRepository, _shelvesetRepository, _buildRepository);

            InitializeComponent();
            branchGrid.Grid.MultiSelect = false;
            this.ExecuteLater(10, () => SwitchCurrentTab(true));
        }
        private void LaunchHistory(IList<object> changeIds)
        {
            if (changeIds.Count < 1)
            {
                return;
            }

            var historyWindow = (HistoryWindow) this.FindForm();
            if (historyWindow != null)
            {
                var ancestor = (TabbedMain) historyWindow.ParentForm;
                if (ancestor != null)
                {
                    foreach (var changeId in changeIds)
                    {
                        var id = changeId;
                        ancestor.AddComponent((tr, sor, shr, br) =>
                        {
                            var result = new RevisionBrowser(tr, sor, shr, br)
                            {
                                BranchId = id,
                                Title = id.ToString(),
                            };
                            return result;
                        });
                    }
                }
            }
        }