コード例 #1
0
        public static ViewManagerProxy GetViewManagerProxy([NotNull] this IWorkingContext workingContext)
        {
            ViewManagerDlc    dlc    = workingContext.GetViewManager() as ViewManagerDlc;
            ViewManagerFacade facade = Reflector.GetInstanceFieldByName(dlc,
                                                                        "m_ViewManagerFacade",
                                                                        ReflectionWays.SystemReflection) as ViewManagerFacade;
            IViewManager manager = Reflector.GetInstanceFieldByName(facade,
                                                                    "m_ViewManager",
                                                                    ReflectionWays.SystemReflection) as IViewManager;
            ViewManagerProxy proxy = new ViewManagerProxy(manager);

            return(proxy);
        }