public DevicesPageViewModel(DeviceModel dm, DevicesPage view) { _dm = dm; _view = view; _devices = new ObservableViewCollection<TargetDevice, DeviceViewModel>(_view.Dispatcher); _devices.ViewMap.Add(typeof(MfTargetDevice), typeof(MfTargetDeviceViewModel)); _devices.ViewMap.Add(typeof(FirmataTargetDevice), typeof(FirmataTargetDeviceViewModel)); _devices.CollectionChanged += _devices_CollectionChanged; }
public DevicesPageViewModel(DeviceModel dm, DevicesPage view) { _dm = dm; _view = view; _devices = new ObservableViewCollection <TargetDevice, DeviceViewModel>(_view.Dispatcher); _devices.ViewMap.Add(typeof(MfTargetDevice), typeof(MfTargetDeviceViewModel)); _devices.ViewMap.Add(typeof(FirmataTargetDevice), typeof(FirmataTargetDeviceViewModel)); _devices.CollectionChanged += _devices_CollectionChanged; }
public MfTargetDeviceViewModel(Dispatcher disp) : base(disp) { _boards = new ObservableViewCollection<FirmwareHost, FirmwareHostViewModel>(disp); _images = new ObservableViewCollection<FirmwareImage, FirmwareImageViewModel>(disp); }
public MfTargetDeviceViewModel(Dispatcher disp) : base(disp) { _boards = new ObservableViewCollection <FirmwareHost, FirmwareHostViewModel>(disp); _images = new ObservableViewCollection <FirmwareImage, FirmwareImageViewModel>(disp); }