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 FirmataEngine(string portName) { _portName = portName; _dm = App.Kernel.Get<DeviceModel>(); }
public MainWindowViewModel(DeviceModel dm, MainWindow view) { _view = view; }
public ScratchSplashScreenViewModel(DeviceModel dm, ScratchSplashScreen view) : base(view.Dispatcher) { _view = view; }