Example #1
0
 public DevicesViewModel()
 {
     Devices = new ObservableCollection<DeviceViewModel>();
     foreach (var deviceState in ItvManager.DeviceStates.DeviceStates)
     {
         var deviceViewModel = new DeviceViewModel(deviceState);
         Devices.Add(deviceViewModel);
     }
 }
Example #2
0
		public DevicesViewModel()
		{
            ResetAllCommand = new RelayCommand(OnResetAll);

			Devices = new ObservableCollection<DeviceViewModel>();
			foreach (var device in ItvManager.DeviceConfiguration.Devices)
			{
				var deviceViewModel = new DeviceViewModel(device);
				Devices.Add(deviceViewModel);
			}
		}