Beispiel #1
0
        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);
        }
Beispiel #5
0
        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);
        }
Beispiel #6
0
        public bool StartBrowseDialog(string filter)
        {
            if (!InvokeEvent(PreBrowse))
            {
                return(false);
            }

            var form = new FormBrowse(filter);

            form.ShowDialog();

            InvokeEvent(PostBrowse);

            return(true);
        }
Beispiel #7
0
 private static void WaitForRevisionsToBeLoaded(FormBrowse form)
 {
     UITest.ProcessUntil("Loading Revisions", () => form.GetTestAccessor().RevisionGrid.GetTestAccessor().IsUiStable);
 }
Beispiel #8
0
        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;
        }
Beispiel #10
0
 public FormBrowseDiagnosticsReporter(FormBrowse owner)
 {
     _owner = owner;
 }
Beispiel #11
0
        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;
        }