Example #1
0
        private void BuildHistoryControl()
        {
            if (historyControl == null)
            {
                historyControl = new HistoryControl();
            }

            historyControl.Load(statusAhead, logEntries);
            if (!selectedEntry.Equals(GitLogEntry.Default) &&
                selectedEntry.CommitID != historyControl.SelectedGitLogEntry.CommitID)
            {
                selectedEntry = GitLogEntry.Default;
            }
        }
Example #2
0
        protected void BuildHistoryControl(int loadAhead, List <GitLogEntry> gitLogEntries)
        {
            if (HistoryControl == null)
            {
                HistoryControl = new HistoryControl();
            }

            HistoryControl.Load(loadAhead, gitLogEntries);
            if (!SelectedEntry.Equals(GitLogEntry.Default) &&
                SelectedEntry.CommitID != HistoryControl.SelectedGitLogEntry.CommitID)
            {
                SelectedEntry = GitLogEntry.Default;
            }
        }