public static ILibTreeService GetTreeService(this IWorkingContext workingContext) { return(LibraryServices.GetTreeService(workingContext)); }
internal static UIOemCustomizationServiceProxy GetUIOemCustomizationServiceDlcProxy([NotNull] this IWorkingContext workingContext) { UIOemCustomizationServiceDlc dlc = workingContext.GetRequiredDlc <UIOemCustomizationServiceDlc>("Siemens.Automation.CommonServices.UIOemCustomizationService"); return(new UIOemCustomizationServiceProxy(dlc)); }
public EventController(IEventService _eService, IWorkingContext workingContext, UserManager <User> userManager) { _eventService = _eService; _userManager = userManager; this.workingContext = workingContext; }
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")); }
public static IEditorFrame ActiveEditor(this IWorkingContext workingContext) { return(FrameLocator.ActiveEditor(workingContext)); }
public IFrame CreateFrame(string frameId, IWorkingContext workingContext) { return(DlcWindowManager.CreateFrame(frameId, workingContext)); }
public OrderRepository(IFindFunction find, IWorkingContext context) { findFunction = find; workingContext = context; }
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)); }
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)); }
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); } }
public static OpenProjectViewDlcProxy GetOpenProjectViewDlc(this IWorkingContext workingContext) { var dlc = workingContext.GetRequiredDlc <OpenProjectViewDlc>("Siemens.Automation.FrameApplication.Portal.Views.OpenProjectViewDlc"); return(new OpenProjectViewDlcProxy(dlc)); }
public static IFrame GetEditorMainFrame(this IWorkingContext workingContext) { return(workingContext.GetFrame("EditorMainFrame")); }
public static IViewFrame FolderPortalViewFrame(this IWorkingContext workingContext) { return(FrameLocator.FolderPortalViewFrame(workingContext)); }
public static IFrame ActiveFrame(this IWorkingContext workingContext) { return(FrameLocator.ActiveFrame(workingContext)); }
public static IViewFrame DetailsViewFrame(this IWorkingContext workingContext) { return(FrameLocator.DetailsViewFrame(workingContext)); }
public static IEditorPageFrame GetActiveEditorPageFrame(this IWorkingContext workingContext) { return(FrameLocator.GetActiveEditorPageFrame(workingContext)); }
public static IViewFrame ProjectLibraryTreeViewFrame(this IWorkingContext workingContext) { return(FrameLocator.ProjectLibraryTreeViewFrame(workingContext)); }
/// <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); }
public static IViewFrame GlobalLibraryTreeViewFrame(this IWorkingContext workingContext) { return(FrameLocator.GlobalLibraryTreeViewFrame(workingContext)); }
public static MenuServiceImplementationProxy GetMenuService([NotNull] this IWorkingContext workingContext) { MenuService dlc = workingContext.GetRequiredDlc <MenuService>("Siemens.Automation.FrameApplication.Menu.MenuService"); return(new MenuServiceImplementationProxy(dlc)); }
public static IFrame ElementsFrame(this IWorkingContext workingContext) { return(FrameLocator.ElementsFrame(workingContext)); }
public WorkingContextProxy(IWorkingContext wc) { WC = wc as WorkingContext; }
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")); }
public static IFrame GetFrame(this IWorkingContext workingContext, string frameId) { return(FrameLocator.GetFrame(workingContext, frameId)); }
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)); }
public UploadServiceProxy(IWorkingContext workingContext) { UploadService = new UploadService(workingContext); }