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");
        }
예제 #2
0
        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);
        }
예제 #4
0
        public WarningMessages(StatusHost statusHost, Dispatcher dispatcher)
        {
            InitializeComponent();
            CultureResources.registerDataProvider(this);;

            _Dispatcher = dispatcher;

            _StatusHost = statusHost;
            _StatusHost.WarningMessageUpdate += new UpdateWarningMessageHandler(UpdateWarningMessage);
        }
예제 #5
0
        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;
        }
예제 #6
0
        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);
            }));
        }
예제 #7
0
 public InfoButton()
 {
     InitializeComponent();
     CultureResources.registerDataProvider(this);;
 }