public FormFileHistory(string fileName, GitRevision revision, bool filterByRevision) : base(true) { InitializeComponent(); syncContext = SynchronizationContext.Current; filterBranchHelper = new FilterBranchHelper(toolStripBranches, toolStripDropDownButton2, FileChanges); filterRevisionsHelper = new FilterRevisionsHelper(toolStripTextBoxFilter, toolStripDropDownButton1, FileChanges, toolStripLabel2, this); FileChanges.SetInitialRevision(revision); Translate(); FileName = fileName; Diff.ExtraDiffArgumentsChanged += DiffExtraDiffArgumentsChanged; FileChanges.SelectionChanged += FileChangesSelectionChanged; FileChanges.DisableContextMenu(); followFileHistoryToolStripMenuItem.Checked = Settings.FollowRenamesInFileHistory; fullHistoryToolStripMenuItem.Checked = Settings.FullHistoryInFileHistory; loadHistoryOnShowToolStripMenuItem.Checked = Settings.LoadFileHistoryOnShow; loadBlameOnShowToolStripMenuItem.Checked = Settings.LoadBlameOnShow; if (filterByRevision && revision != null && revision.Guid != null) filterBranchHelper.SetBranchFilter(revision.Guid, false); }
public FormFileHistory(string fileName, GitRevision revision, bool filterByRevision) : base(true) { InitializeComponent(); syncContext = SynchronizationContext.Current; filterBranchHelper = new FilterBranchHelper(toolStripBranches, toolStripDropDownButton2, FileChanges); filterRevisionsHelper = new FilterRevisionsHelper(toolStripTextBoxFilter, toolStripDropDownButton1, FileChanges, toolStripLabel2, this); FileChanges.SetInitialRevision(revision); Translate(); FileName = fileName; Diff.ExtraDiffArgumentsChanged += DiffExtraDiffArgumentsChanged; FileChanges.SelectionChanged += FileChangesSelectionChanged; FileChanges.DisableContextMenu(); followFileHistoryToolStripMenuItem.Checked = Settings.FollowRenamesInFileHistory; fullHistoryToolStripMenuItem.Checked = Settings.FullHistoryInFileHistory; loadHistoryOnShowToolStripMenuItem.Checked = Settings.LoadFileHistoryOnShow; loadBlameOnShowToolStripMenuItem.Checked = Settings.LoadBlameOnShow; if (filterByRevision && revision != null && revision.Guid != null) { filterBranchHelper.SetBranchFilter(revision.Guid, false); } }
public FormFileHistory(GitUICommands aCommands, string fileName, GitRevision revision, bool filterByRevision) : this(aCommands) { FileChanges.SetInitialRevision(revision); Translate(); FileName = fileName; Diff.ExtraDiffArgumentsChanged += DiffExtraDiffArgumentsChanged; FileChanges.SelectionChanged += FileChangesSelectionChanged; FileChanges.DisableContextMenu(); followFileHistoryToolStripMenuItem.Checked = Settings.FollowRenamesInFileHistory; fullHistoryToolStripMenuItem.Checked = Settings.FullHistoryInFileHistory; loadHistoryOnShowToolStripMenuItem.Checked = Settings.LoadFileHistoryOnShow; loadBlameOnShowToolStripMenuItem.Checked = Settings.LoadBlameOnShow; if (filterByRevision && revision != null && revision.Guid != null) { filterBranchHelper.SetBranchFilter(revision.Guid, false); } }