Ejemplo n.º 1
0
 private void ResetDevice()
 {
     this.Props = new DevicePropertiesViewModel(this.Device);
     this.ResetBrowsingContent();
 }
Ejemplo n.º 2
0
 private void OnDeviceChanged()
 {
     if (this.previousDevice != null)
     {
         this.previousDevice.ZmdbChangedEvent -= new EventHandler(this.OnDeviceZmdbChangedEvent);
         this.previousDevice.PropertyChanged -= new PropertyChangedEventHandler(this.OnDevicePropertyChanged);
     }
     this.previousDevice = this.device;
     if (this.device != null)
     {
         this.ResetDevice();
         this.device.ZmdbChangedEvent += new EventHandler(this.OnDeviceZmdbChangedEvent);
         this.device.PropertyChanged += new PropertyChangedEventHandler(this.OnDevicePropertyChanged);
     }
     else
     {
         this.Props = null;
     }
 }