Пример #1
0
        public void PublisherFilterChangedHandler(object sender, PublisherFilterEventArgs e)
        {
            // Set the toolbar state to mirror that passed to us
            StateButtonTool sbtShowIncluded = filtersRibbonGroup.Tools["network" + CommonToolNames.ViewIncluded] as StateButtonTool;

            sbtShowIncluded.Checked = e.ViewIncludedApplications;
            //
            StateButtonTool sbtShowIgnored = filtersRibbonGroup.Tools["network" + CommonToolNames.ViewIgnored] as StateButtonTool;

            sbtShowIgnored.Checked = e.ViewIgnoredApplications;
        }
        public void PublisherFilterChangedHandler(object sender, PublisherFilterEventArgs e)
        {
            // Simply update our internal publisher filter with that specified
            _publisherFilter = e.PublisherFilter;

            // ...and force a refresh if we are the active explorer view
            ILaytonView activeExplorerView = (ILaytonView)WorkItem.RootWorkItem.Workspaces[WorkspaceNames.ExplorerWorkspace].ActiveSmartPart;

            if (activeExplorerView == WorkItem.ExplorerView)
            {
                WorkItem.TabView.RefreshView();
                WorkItem.ExplorerView.RefreshView();
            }
        }
        public void PublisherFilterChangedHandler(object sender, PublisherFilterEventArgs e)
        {
            // Simply update our internal filters with those specified
            _publisherFilter          = e.PublisherFilter;
            _showIncludedApplications = e.ViewIncludedApplications;
            _showIgnoredApplications  = e.ViewIgnoredApplications;

            // ...and force a refresh if we are the active explorer view
            ILaytonView activeExplorerView = (ILaytonView)WorkItem.RootWorkItem.Workspaces[WorkspaceNames.ExplorerWorkspace].ActiveSmartPart;

            if (activeExplorerView == WorkItem.ExplorerView)
            {
                Trace.Write("Refreshing Applications Views\n");
                workItem.GetActiveTabView().RefreshView();
                WorkItem.ExplorerView.RefreshView();
            }
        }
Пример #4
0
 public void PublisherFilterChangedHandler(object sender, PublisherFilterEventArgs e)
 {
     _publisherFilter          = e.PublisherFilter;
     _showIncludedApplications = e.ViewIncludedApplications;
     _showIgnoredApplications  = e.ViewIgnoredApplications;
 }