private void RegisterTabPages()
        {
            // register full text search view
            _tabPages[(int)TabIndex.TextSearch].Controls.Add(CreateTextSearchView());
            _tabPages[(int)TabIndex.DumpContent].Controls.Add(CreateDumpUserContentView());
            _tabPages[(int)TabIndex.Provisioning].Controls.Add(CreateProvisionView());
            _tabPages[(int)TabIndex.Groups].Controls.Add(CreateGroupsView());
            _tabPages[(int)TabIndex.TeamFolders].Controls.Add(CreateTeamFoldersView());
            _tabPages[(int)TabIndex.Paper].Controls.Add(CreatePaperView());
            _tabPages[(int)TabIndex.Devices].Controls.Add(CreateDevicesView());
            _tabPages[(int)TabIndex.TeamAuditing].Controls.Add(CreateTeamAuditingView());
            _tabPages[(int)TabIndex.TeamHealth].Controls.Add(CreateTeamHealthView());
            _tabPages[(int)TabIndex.DataMigration].Controls.Add(CreateDataMigrationView());

            _tabControl.Controls.Add(_tabPages[(int)TabIndex.TextSearch]);
            _tabControl.Controls.Add(_tabPages[(int)TabIndex.DumpContent]);
            _tabControl.Controls.Add(_tabPages[(int)TabIndex.Provisioning]);
            _tabControl.Controls.Add(_tabPages[(int)TabIndex.Groups]);
            _tabControl.Controls.Add(_tabPages[(int)TabIndex.TeamFolders]);
            _tabControl.Controls.Add(_tabPages[(int)TabIndex.Paper]);
            _tabControl.Controls.Add(_tabPages[(int)TabIndex.Devices]);
            _tabControl.Controls.Add(_tabPages[(int)TabIndex.TeamAuditing]);
            _tabControl.Controls.Add(_tabPages[(int)TabIndex.TeamHealth]);
            _tabControl.Controls.Add(_tabPages[(int)TabIndex.DataMigration]);

            // select first tab
            _tabControl.SelectTab((int)TabIndex.TextSearch);
        }
예제 #2
0
        private void FindAll()
        {
            _searchResults.Nodes.Clear();

            if (string.IsNullOrWhiteSpace(textBox_Find.Text))
            {
                ShowError("Invalid input.");
                return;
            }

            _infoTabControl.SelectTab(2);

            string       pattern = GetCurrentPattern();
            RegexOptions options = GetCurrentRegexOptions();

            if (radioButton_Current.Checked)
            {
                FindAllInCurrentTab(pattern, options);
            }
            else if (radioButton_AllTabs.Checked)
            {
                FindAllInAllTabs(pattern, options);
            }
        }