public RealTimeViewerDisplay(string multicastAddr, int dataPort) { InitializeComponent(); CultureResources.registerDataProvider(this);; _activeScanEndPoint = new RealTimeDataAccess(multicastAddr, dataPort); _effect = new SlideInTransitionEffect(); _updateThread = Threads.Create(UpdateAgent, ref _updateEnd, "Real Time View Update thread"); }
public Indicator(StatusHost statusHost, Dispatcher dispatcher) { InitializeComponent(); CultureResources.registerDataProvider(this);; _Dispatcher = dispatcher; _StatusHost = statusHost; _StatusHost.IndicatorUpdate += new UpdateIndicatorHandler(UpdateIndicator); }
public StartCalibrationControls(Dispatcher dispatcher, EndpointAddress address, WidgetStatusHost widgetStatusHost) { InitializeComponent(); CultureResources.registerDataProvider(this); _Dispatcher = dispatcher; _EndpointAddress = address; _WidgetStatusHost = widgetStatusHost; _WidgetStatusHost.WidgetUpdateEvent += new WidgetUpdateHandler(WidgetUpdate); }
public WarningMessages(StatusHost statusHost, Dispatcher dispatcher) { InitializeComponent(); CultureResources.registerDataProvider(this);; _Dispatcher = dispatcher; _StatusHost = statusHost; _StatusHost.WarningMessageUpdate += new UpdateWarningMessageHandler(UpdateWarningMessage); }
public InfoDisplay(Dispatcher dispatcher, EndpointAddress address, WidgetStatusHost widgetStatusHost) { InitializeComponent(); CultureResources.registerDataProvider(this);; _Dispatcher = dispatcher; _EndpointAddress = address; _WidgetStatusHost = widgetStatusHost; _WidgetStatusHost.WidgetUpdateEvent += new WidgetUpdateHandler(WidgetUpdate); _badDetectorsList = new ObservableCollection <int>(); BadDetectorsListView.DataContext = _badDetectorsList; }
private void AddWarningMessage(int errorNum, string resourceName) { _Dispatcher.Invoke(DispatcherPriority.Normal, new Action(delegate() { NotificationHeaderControl warningItem = new NotificationHeaderControl(errorNum); var binding = new Binding("WARNING_HASH"); binding.Source = L3.Cargo.Common.Dashboard.CultureResources.getDataProvider(); BindingOperations.SetBinding(warningItem, NotificationHeaderControl.HeaderProperty, binding); string val = L3.Cargo.Detectors.Display.Common.Resources.ResourceManager.GetString(resourceName); if (!String.IsNullOrWhiteSpace(val)) { binding = new Binding(resourceName); binding.Source = CultureResources.getDataProvider(); BindingOperations.SetBinding(warningItem, HeaderedContentControl.ContentProperty, binding); } else { warningItem.Content = L3.Cargo.Detectors.Display.Common.Resources.UNKNOWN_RESOURCE + ": " + resourceName + " (" + errorNum.ToString() + ")"; } WarningText.Items.Add(warningItem); })); }
public InfoButton() { InitializeComponent(); CultureResources.registerDataProvider(this);; }