public StatusBarProxy(IDlc dlc) { StatusBarDlc = dlc as StatusBarDlc; if (StatusBarDlc != null) { StatusBarControl = Reflector.GetInstanceFieldByName(StatusBarDlc, "m_StatusBarControl", ReflectionWays.SystemReflection) as StatusBarControl; } }
public static StatusBarProxy GetStatusBar([NotNull] this IWorkingContext workingContext) { StatusBarDlc dlc = workingContext.GetRequiredDlc <StatusBarDlc>("Siemens.Automation.FrameApplication.StatusBar"); return(new StatusBarProxy(dlc)); }