public static IDlc GetPrimaryProjectUiWorkingContextManagerDlc(this IWorkingContext workingContext)
        {
            PrimaryProjectUiWorkingContextManagerDlc EditorController =
                workingContext.DlcManager.Load("Siemens.Automation.FrameApplication.ProjectHandling.PrimaryProject.PrimaryProjectUiWorkingContextManager")
                as PrimaryProjectUiWorkingContextManagerDlc;

            return(EditorController);
        }
        public static IUIContextHolder GetUIContextHolder(this IWorkingContext workingContext)
        {
            PrimaryProjectUiWorkingContextManagerDlc dlc = workingContext.GetPrimaryProjectUiWorkingContextManagerDlc()
                                                           as PrimaryProjectUiWorkingContextManagerDlc;
            PrimaryProjectUiWorkingContextManager manager = Reflector.GetInstancePropertyByName(dlc, "Forwardee", ReflectionWays.SystemReflection)
                                                            as PrimaryProjectUiWorkingContextManager;
            var proxy = new PrimaryProjectUiWorkingContextManagerProxy(manager);

            return(proxy.IUIContextHolder);
        }
        public static PrimaryProjectUiWorkingContextManagerProxy GetPrimaryProjectUiWorkingContextManagerProxy([NotNull] this IWorkingContext workingContext)
        {
            PrimaryProjectUiWorkingContextManagerDlc dlc = workingContext.GetPrimaryProjectUiWorkingContextManagerDlc()
                                                           as PrimaryProjectUiWorkingContextManagerDlc;
            PrimaryProjectUiWorkingContextManager manager = Reflector.GetInstancePropertyByName(dlc, "Forwardee", ReflectionWays.SystemReflection)
                                                            as PrimaryProjectUiWorkingContextManager;
            PrimaryProjectUiWorkingContextManagerProxy proxy = new PrimaryProjectUiWorkingContextManagerProxy(manager);

            return(proxy);
        }