public static FormBrowse StartBrowseForm(GitUICommands commands, Form form) { if (instance == null) instance = commands.StartBrowseForm(form, "", run: false); return instance; }
private TreeNode GetSubmoduleNode(FormBrowse form) { var treeView = form.GetTestAccessor().RepoObjectsTree.GetTestAccessor().TreeView; var remotesNode = treeView.Nodes.OfType <TreeNode>().FirstOrDefault(n => n.Text == GitUI.Strings.Submodules); remotesNode.Should().NotBeNull(); return(remotesNode); }
private MenuStripEx FindMainMenu(IGitUICommands commands) { FormBrowse form = (FormBrowse)((GitUICommands)commands).BrowseRepo; if (form != null) { MenuStripEx mainMenu = form.Controls.OfType <MenuStripEx>().FirstOrDefault(); return(mainMenu); } return(null); }
private TreeNode GetRemoteNode(FormBrowse form) { Assert.IsFalse(form.MainSplitContainer.Panel1Collapsed); // Await all async operation such as load of branches and remotes in the left panel ThreadHelper.JoinPendingOperations(); var treeView = form.GetTestAccessor().RepoObjectsTree.GetTestAccessor().TreeView; var remotesNode = treeView.Nodes.OfType <TreeNode>().FirstOrDefault(n => n.Text == TranslatedStrings.Remotes); remotesNode.Should().NotBeNull(); return(remotesNode); }
public bool StartBrowseDialog(IWin32Window owner, string filter) { if (!InvokeEvent(owner, PreBrowse)) { return(false); } using (var form = new FormBrowse(filter)) form.ShowDialog(owner); InvokeEvent(owner, PostBrowse); return(true); }
public bool StartBrowseDialog(string filter) { if (!InvokeEvent(PreBrowse)) { return(false); } var form = new FormBrowse(filter); form.ShowDialog(); InvokeEvent(PostBrowse); return(true); }
private static void WaitForRevisionsToBeLoaded(FormBrowse form) { UITest.ProcessUntil("Loading Revisions", () => form.GetTestAccessor().RevisionGrid.GetTestAccessor().IsUiStable); }
public bool StartBrowseDialog(IWin32Window owner, string filter) { if (!InvokeEvent(owner, PreBrowse)) return false; var form = new FormBrowse(this, filter); Application.Run(form); InvokeEvent(owner, PostBrowse); return true; }
public bool StartBrowseDialog(IWin32Window owner, string filter) { if (!InvokeEvent(owner, PreBrowse)) return false; var form = new FormBrowse(this, filter); if (Application.MessageLoop) { form.Show(); } else { Application.Run(form); } InvokeEvent(owner, PostBrowse); return true; }
public FormBrowseDiagnosticsReporter(FormBrowse owner) { _owner = owner; }
public bool StartBrowseDialog(IWin32Window owner, string filter) { if (!InvokeEvent(owner, PreBrowse)) return false; using (var form = new FormBrowse(this, filter)) form.ShowDialog(owner); InvokeEvent(owner, PostBrowse); return true; }