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();
        }
示例#2
0
        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();
        }