Exemple #1
0
 public void AddDevice(MultimeterPage Device)
 {
     Device.PropertyChanged += (o, e) =>
     {
         if (e.PropertyName == "Title")
         {
             DeviceIdChanged(o as MultimeterPage);
         }
     };
     Devices.Add(Device);
 }
Exemple #2
0
 void DeviceIdChanged(MultimeterPage Device)
 {
     Globals.RunMainThread(() =>
     {
         //Stupid work around for dynamic itesm in pickers.
         A_List.ItemsSource        = Devices;
         A_List.ItemDisplayBinding = new Binding("Title");
         B_List.ItemsSource        = Devices;
         B_List.ItemDisplayBinding = new Binding("Title");
     });
 }