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

            return(new StatusBarProxy(dlc));
        }