public MainWindow(IConfig c, IPanelLED pl, IDataMeasure dm, ICancelTaskService cts) { config = c; panelLED = pl; dataMeasure = dm; cancelTaskService = cts; InitializeComponent(); DataContext = new MainViewModel(config, panelLED, dataMeasure, cancelTaskService); }
public LEDViewModel(IConfig c, IPanelLED pl) { configService = c; panelLEDService = pl; InitializePanelLed(panelLEDService.GetLEDsState()); SetButtonPanel(); Set = new ButtonCommand(SetColor); ColorSelected = Colors.Blue; }
public MainViewModel(IConfig c, IPanelLED pl, IDataMeasure dm, ICancelTaskService cts) { ChartButton = new ButtonCommand(GoToChart); DisplayButton = new ButtonCommand(GoToLED); MeasureButton = new ButtonCommand(GoToMeasure); JoystickButton = new ButtonCommand(GoToJoystick); config = c; panelLedService = pl; dataMeasureService = dm; cancelTaskService = cts; page = new MeasurePage(config, dataMeasureService, cancelTaskService); }
public LEDPage(IConfig c, IPanelLED pl) { InitializeComponent(); DataContext = new LEDViewModel(c, pl); }