public BuildServerWatcher(RevisionGrid revisionGrid, DvcsGraph revisions) { this.revisionGrid = revisionGrid; this.revisions = revisions; BuildStatusImageColumnIndex = -1; BuildStatusMessageColumnIndex = -1; }
public IssueTrackerWatcher(RevisionGrid revisionGrid, DvcsGraph revisions) { this.revisionGrid = revisionGrid; this.revisions = revisions; IssueStatusImageColumnIndex = -1; IssueStatusMessageColumnIndex = -1; }
public BuildServerWatcher(RevisionGrid revisionGrid, DvcsGraph revisions) { _revisionGrid = revisionGrid; _revisions = revisions; _repoNameExtractor = new RepoNameExtractor(() => Module); BuildStatusImageColumnIndex = -1; BuildStatusMessageColumnIndex = -1; }
private void RevisionsLoading(object sender, DvcsGraph.LoadingEventArgs e) { // Since this can happen on a background thread, we'll just set a // flag and deal with it next time we paint (a bit of a hack, but // it works) _isLoading = e.IsLoading; }
public void RevisionGrid_Form1() { app = new ApplicationContext(); Form = new FormRevisionGrid(); RevisionGrid = Form.Grid; Revisions = RevisionGrid.RevisionsGraph; app.MainForm = Form; var currentDir = Directory.GetCurrentDirectory(); string[] args = new string[] { "", "", currentDir }; // GitExtensionsTest\bin\Debug if (args[2].EndsWith(@"bin\Debug")) args[2] = Path.GetFullPath(currentDir + @"\..\..\.."); var dir = GetWorkingDir(args); Directory.SetCurrentDirectory(dir); GitUICommands uCommands = new GitUICommands(dir); var browseForm = TestStatic.StartBrowseForm(uCommands, Form); Form.LoadModule(browseForm.Module); RevisionGrid.UICommandsSource = Form; var _revisionGraphCommand = new RevisionGraph(browseForm.Module) { BranchFilter = null }; _revisionGraphCommand.Updated += _revisionGraphCommand_Updated; _revisionGraphCommand.Error += _revisionGraphCommand_Error; //_revisionGraphCommand.InMemFilter = revGraphIMF; _revisionGraphCommand.Exited += _revisionGraphCommand_Exited; RevisionGrid.RevisionsGraph.Columns[1].Visible = false; RevisionGrid.RevisionsGraph.RemovePainting(); Form.Show(); _revisionGraphCommand.Execute(); Application.Run(app); }