Esempio n. 1
0
        public InfoDisplay(Dispatcher dispatcher, WidgetStatusHost host)
        {
            InitializeComponent();
            CultureResources.registerDataProvider(this);

            TagUpdate plcTagUpdate = new TagUpdate(EStopStatus, InterlockStatus, WarningStatus, SummaryStatus, dispatcher, host);
        }
Esempio n. 2
0
        public ResetFaults(Dispatcher dispatcher, EndpointAddress address)
        {
            InitializeComponent();
            CultureResources.registerDataProvider(this);

            _Dispatcher      = dispatcher;
            _EndpointAddress = address;
        }
Esempio n. 3
0
        public SummaryStatus()
        {
            InitializeComponent();
            CultureResources.registerDataProvider(this);
            CultureResources.getDataProvider().DataChanged += new EventHandler(CultureResources_DataChanged);

            _summaryStatusTags = (TagCollection)FindResource("summaryCollection");
        }
Esempio n. 4
0
        public InterlockStatus()
        {
            InitializeComponent();
            CultureResources.registerDataProvider(this);
            CultureResources.getDataProvider().DataChanged += new EventHandler(CultureResources_DataChanged);

            _interlockTags = (TagCollection)FindResource("interlockCollection");
        }
Esempio n. 5
0
        public TruckModel(WidgetStatusHost widgetStatusHost, Dispatcher dispatcher)
        {
            InitializeComponent();
            CultureResources.registerDataProvider(this);

            _Dispatcher       = dispatcher;
            _WidgetStatusHost = widgetStatusHost;
            _WidgetStatusHost.WidgetUpdateEvent  += new WidgetUpdateHandler(WidgetUpdate);
            _WidgetStatusHost.ErrorMessageUpdate += new UpdateErrorMessageHandler(_WidgetStatusHost_ErrorMessageUpdate);
        }
Esempio n. 6
0
        public WarningMessages(StatusHost statusHost, Dispatcher dispatcher)
        {
            InitializeComponent();
            CultureResources.registerDataProvider(this);

            _Dispatcher = dispatcher;

            _StatusHost = statusHost;
            _StatusHost.WarningMessageUpdate += new UpdateWarningMessageHandler(UpdateWarningMessage);
        }
        public CollisionDetection(Dispatcher dispatcher, EndpointAddress address, WidgetStatusHost widgetStatusHost)
        {
            InitializeComponent();
            CultureResources.registerDataProvider(this);

            _Dispatcher       = dispatcher;
            _EndpointAddress  = address;
            _WidgetStatusHost = widgetStatusHost;
            _WidgetStatusHost.WidgetUpdateEvent += new WidgetUpdateHandler(WidgetUpdate);
        }
Esempio n. 8
0
        public Indicator(StatusHost statusHost, Dispatcher dispatcher)
        {
            InitializeComponent();
            CultureResources.registerDataProvider(this);

            _Dispatcher = dispatcher;

            _StatusHost = statusHost;
            _StatusHost.IndicatorUpdate += new UpdateIndicatorHandler(UpdateIndicator);
        }
Esempio n. 9
0
        public PortalModel(WidgetStatusHost widgetStatusHost, Dispatcher dispatcher)
        {
            InitializeComponent();

            CultureResources.registerDataProvider(this);

            _viewModel = new PortalViewModel();

            createStatusObjects();

            this.VehicleStatus = VehicleType.Small_Vehicle;

            _Dispatcher       = dispatcher;
            _WidgetStatusHost = widgetStatusHost;
            _WidgetStatusHost.WidgetUpdateEvent  += new WidgetUpdateHandler(WidgetUpdate);
            _WidgetStatusHost.ErrorMessageUpdate += new UpdateErrorMessageHandler(_WidgetStatusHost_ErrorMessageUpdate);
        }
Esempio n. 10
0
        public PortalModel(WidgetStatusHost widgetStatusHost, Dispatcher dispatcher)
        {
            InitializeComponent();

            Map(updateInterlockDoor, "INTERLOCK_DOOR");
            Map(updateEStops, "ESTOP");
            Map(updateMDSSensor, "MDS");
            Map(updateLightCurtainEmitters, "INTERLOCK_LC");
            Map(updateTrafficLight, "TRAFFIC_LIGHT_STATUS");
            Map(updateVehicleSensor, "VEHICLE_SENSOR");

            CultureResources.registerDataProvider(this);

            _viewModel = new PortalViewModel();

            this.VehicleStatus = VehicleType.Small_Vehicle;

            _Dispatcher       = dispatcher;
            _WidgetStatusHost = widgetStatusHost;
            _WidgetStatusHost.WidgetUpdateEvent  += new WidgetUpdateHandler(WidgetUpdate);
            _WidgetStatusHost.ErrorMessageUpdate += new UpdateErrorMessageHandler(_WidgetStatusHost_ErrorMessageUpdate);
        }
Esempio n. 11
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.Safety.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.Safety.Display.Common.Resources.UNKNOWN_RESOURCE + ": " + resourceName + " (" + errorNum.ToString() + ")";
                }
                WarningText.Items.Add(warningItem);
            }));
        }
Esempio n. 12
0
 public InfoDisplay(TagUpdate tagupdate)
 {
     InitializeComponent();
     CultureResources.registerDataProvider(this);
 }
Esempio n. 13
0
 public SummaryStatus(TagUpdate tagupdate)
 {
     InitializeComponent();
     CultureResources.registerDataProvider(this);
     CultureResources.getDataProvider().DataChanged += new EventHandler(CultureResources_DataChanged);
 }
Esempio n. 14
0
 public InfoButton()
 {
     InitializeComponent();
     CultureResources.registerDataProvider(this);
 }