Exemple #1
0
        public SummaryStatus()
        {
            InitializeComponent();
            CultureResources.registerDataProvider(this);
            CultureResources.getDataProvider().DataChanged += new EventHandler(CultureResources_DataChanged);

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

            _interlockTags = (TagCollection)FindResource("interlockCollection");
        }
Exemple #3
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);
            }));
        }
Exemple #4
0
 public SummaryStatus(TagUpdate tagupdate)
 {
     InitializeComponent();
     CultureResources.registerDataProvider(this);
     CultureResources.getDataProvider().DataChanged += new EventHandler(CultureResources_DataChanged);
 }