Beispiel #1
0
        private void PluginList_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            current = PluginList.SelectedItem as SensorConsumerDetails;

            if (current != null)
            {
                related = new List<string>();

                foreach (int id in current.Sensors)
                {
                    related.Add(SensorName[id]);
                }

                RelatedBox.ItemsSource = null;
                RelatedBox.ItemsSource = related;
            }
            else
            {
                RelatedBox.ItemsSource = null;
            }

            ActiveBox.ItemsSource = null;
        }
 public void RemoveConsumer(SensorConsumerDetails consumer)
 {
     consumer.Remove();
     Consumers.Remove(consumer);
 }