public LedViewModel(LayoutEditModel model, DeviceLayoutViewModel layoutViewModel, IWindowManager windowManager, LedLayout ledLayout) { _layoutViewModel = layoutViewModel; _windowManager = windowManager; Model = model; LedLayout = ledLayout; AvailableLedIds = new BindableCollection <string>(); LedCursor = Cursors.Hand; ApplyLogicalLayout(); }
public LedViewModel(LayoutEditModel model, DeviceLayoutViewModel layoutViewModel, IWindowManager windowManager, LedLayout ledLayout) { _layoutViewModel = layoutViewModel; _windowManager = windowManager; Model = model; LedLayout = ledLayout; AvailableLedIds = new BindableCollection <string>(); LedCursor = Cursors.Hand; this.PropertyChanged += OnPropertyChanged; FileChangedWatcher.FileChanged += FileChangedWatcherOnFileChanged; UpdateImageSource(); }