Ejemplo n.º 1
0
 public static ILibTreeService GetTreeService(this IWorkingContext workingContext)
 {
     return(LibraryServices.GetTreeService(workingContext));
 }
Ejemplo n.º 2
0
        internal static UIOemCustomizationServiceProxy GetUIOemCustomizationServiceDlcProxy([NotNull] this IWorkingContext workingContext)
        {
            UIOemCustomizationServiceDlc dlc = workingContext.GetRequiredDlc <UIOemCustomizationServiceDlc>("Siemens.Automation.CommonServices.UIOemCustomizationService");

            return(new UIOemCustomizationServiceProxy(dlc));
        }
Ejemplo n.º 3
0
 public EventController(IEventService _eService, IWorkingContext workingContext, UserManager <User> userManager)
 {
     _eventService       = _eService;
     _userManager        = userManager;
     this.workingContext = workingContext;
 }
Ejemplo n.º 4
0
        public static StatusBarProxy GetStatusBar([NotNull] this IWorkingContext workingContext)
        {
            StatusBarDlc dlc = workingContext.GetRequiredDlc <StatusBarDlc>("Siemens.Automation.FrameApplication.StatusBar");

            return(new StatusBarProxy(dlc));
        }
 public static IDlc GetMonitorLoop(this IWorkingContext workingContext)
 {
     return(workingContext.DlcManager.Load("Siemens.Simatic.Lang.Code.MonitorLoopFactory"));
 }
Ejemplo n.º 6
0
 public static IEditorFrame ActiveEditor(this IWorkingContext workingContext)
 {
     return(FrameLocator.ActiveEditor(workingContext));
 }
Ejemplo n.º 7
0
 public IFrame CreateFrame(string frameId, IWorkingContext workingContext)
 {
     return(DlcWindowManager.CreateFrame(frameId, workingContext));
 }
Ejemplo n.º 8
0
 public OrderRepository(IFindFunction find, IWorkingContext context)
 {
     findFunction   = find;
     workingContext = context;
 }
Ejemplo n.º 9
0
 public static IViewManager GetViewManager([NotNull] this IWorkingContext workingContext)
 {
     return(workingContext.DlcManager.Load("Siemens.Automation.FrameApplication.ViewManager") as IViewManager);
 }
 public static T GetOptionalDlc <T>(this IWorkingContext workingContext,
                                    string serviceId)
     where T : class
 {
     return(GetDlcInternal <T>(workingContext, serviceId, false));
 }
Ejemplo n.º 11
0
        public static GlobalLibraryNavigationViewProxy GetGlobalLibraryNavigationView(this IWorkingContext workingContext)
        {
            GlobalLibraryNavigationView dlc = workingContext.GetRequiredDlc <GlobalLibraryNavigationView>("Siemens.Automation.FrameApplication.Portal.Views.OpenProjectViewDlc");

            return(new GlobalLibraryNavigationViewProxy(dlc));
        }
 public static T GetRequiredDlc <T>(this IWorkingContext workingContext,
                                    string serviceId)
     where T : class
 {
     return(GetDlcInternal <T>(workingContext, serviceId, true));
 }
Ejemplo n.º 13
0
        public static PrimaryProjectUiWorkingContextManagerProxy GetPrimaryProjectUiWorkingContextManagerProxy(this IWorkingContext workingContext)
        {
            var dlc = workingContext.GetPrimaryProjectUiWorkingContextManagerDlc()
                      as PrimaryProjectUiWorkingContextManagerDlc;
            var manager = Reflector.GetInstancePropertyByName(dlc, "Forwardee", ReflectionWays.SystemReflection)
                          as PrimaryProjectUiWorkingContextManager;

            if (PrimaryProjectUiWorkingContextManagerProxy.Instance == null)
            {
                var proxy = new PrimaryProjectUiWorkingContextManagerProxy(manager);
                return(proxy);
            }
            else
            {
                return(PrimaryProjectUiWorkingContextManagerProxy.Instance);
            }
        }
Ejemplo n.º 14
0
        public static OpenProjectViewDlcProxy GetOpenProjectViewDlc(this IWorkingContext workingContext)
        {
            var dlc = workingContext.GetRequiredDlc <OpenProjectViewDlc>("Siemens.Automation.FrameApplication.Portal.Views.OpenProjectViewDlc");

            return(new OpenProjectViewDlcProxy(dlc));
        }
Ejemplo n.º 15
0
 public static IFrame GetEditorMainFrame(this IWorkingContext workingContext)
 {
     return(workingContext.GetFrame("EditorMainFrame"));
 }
Ejemplo n.º 16
0
 public static IViewFrame FolderPortalViewFrame(this IWorkingContext workingContext)
 {
     return(FrameLocator.FolderPortalViewFrame(workingContext));
 }
Ejemplo n.º 17
0
 public static IFrame ActiveFrame(this IWorkingContext workingContext)
 {
     return(FrameLocator.ActiveFrame(workingContext));
 }
Ejemplo n.º 18
0
 public static IViewFrame DetailsViewFrame(this IWorkingContext workingContext)
 {
     return(FrameLocator.DetailsViewFrame(workingContext));
 }
Ejemplo n.º 19
0
 public static IEditorPageFrame GetActiveEditorPageFrame(this IWorkingContext workingContext)
 {
     return(FrameLocator.GetActiveEditorPageFrame(workingContext));
 }
Ejemplo n.º 20
0
 public static IViewFrame ProjectLibraryTreeViewFrame(this IWorkingContext workingContext)
 {
     return(FrameLocator.ProjectLibraryTreeViewFrame(workingContext));
 }
Ejemplo n.º 21
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="context"></param>
        /// <param name="msg"></param>
        /// <param name="args"></param>
        public static void LogError(this IWorkingContext context, string msg, params object[] args)
        {
            string component = GetCallingMethod(2);

            context.Log(component, TraceLevel.Error, CommonUtils.DefaultCategory, msg, args);
        }
Ejemplo n.º 22
0
 public static IViewFrame GlobalLibraryTreeViewFrame(this IWorkingContext workingContext)
 {
     return(FrameLocator.GlobalLibraryTreeViewFrame(workingContext));
 }
Ejemplo n.º 23
0
        public static MenuServiceImplementationProxy GetMenuService([NotNull] this IWorkingContext workingContext)
        {
            MenuService dlc = workingContext.GetRequiredDlc <MenuService>("Siemens.Automation.FrameApplication.Menu.MenuService");

            return(new MenuServiceImplementationProxy(dlc));
        }
Ejemplo n.º 24
0
 public static IFrame ElementsFrame(this IWorkingContext workingContext)
 {
     return(FrameLocator.ElementsFrame(workingContext));
 }
Ejemplo n.º 25
0
 public WorkingContextProxy(IWorkingContext wc)
 {
     WC = wc as WorkingContext;
 }
Ejemplo n.º 26
0
 public static IViewFrame PartsViewFrame(this IWorkingContext workingContext)
 {
     return(FrameLocator.PartsViewFrame(workingContext));
 }
 public static IEditorStarter GetEditorStarterFacadeDlc([NotNull] this IWorkingContext workingContext)
 {
     return(workingContext.GetRequiredDlc <EditorStarterFacadeDlc>("Siemens.Simatic.PlcLanguages.BlockEditorFrame.EditorStarterFacade"));
 }
Ejemplo n.º 28
0
 public static IFrame GetFrame(this IWorkingContext workingContext, string frameId)
 {
     return(FrameLocator.GetFrame(workingContext, frameId));
 }
Ejemplo n.º 29
0
        public static PersistentDataStorageServiceProxy GetPersistentDataStorageService([NotNull] this IWorkingContext workingContext)
        {
            PersistentDataStorageService dlc = workingContext.GetRequiredDlc <PersistentDataStorageService>("Siemens.Simatic.HwConfiguration.Application.UserInterface.Basics.Controller.PersistentDataStorageService");

            return(new PersistentDataStorageServiceProxy(dlc));
        }
Ejemplo n.º 30
0
 public UploadServiceProxy(IWorkingContext workingContext)
 {
     UploadService = new UploadService(workingContext);
 }