Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 public LEDViewModel(IConfig c, IPanelLED pl)
 {
     configService   = c;
     panelLEDService = pl;
     InitializePanelLed(panelLEDService.GetLEDsState());
     SetButtonPanel();
     Set           = new ButtonCommand(SetColor);
     ColorSelected = Colors.Blue;
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 public LEDPage(IConfig c, IPanelLED pl)
 {
     InitializeComponent();
     DataContext = new LEDViewModel(c, pl);
 }