Exemplo n.º 1
0
        private static void ExecSearchViewLate()
        {
            //  All this extra checks are the protection around the possibility
            //  to run in the "non-friendly" environment.
            if (Core.LeftSidebar != null && Core.LeftSidebar.DefaultViewPane != null)
            {
                IResource view = Core.LeftSidebar.DefaultViewPane.SelectedNode;
                if (view != null && FilterRegistry.IsSearchResultsView(view))

                {
                    new ResourceProxy(view).SetProp("ForceExec", true);
                    Core.LeftSidebar.DefaultViewPane.SelectResource(view);
                }
            }
        }