public MainPage(IThemeControl themeControl, IPageControl pageControl, IInjectionControl injectionControl) { InitializeComponent(); _themeControl = themeControl; _pageControl = pageControl; _injectionControl = injectionControl; }
public DeviceCapabilitiesViewModel(IInjectionControl injectionControl, RaspberryClient raspberryClient) { ToDevices = new Command(async() => await injectionControl.NavigateAsync <DevicesPage>()); ToDeviceComponent = new Command(async() => await ToDeviceComponentAsync()); OnTest = new Command <DeviceCapability>(async c => await TestExecuteAsync(c, "on")); OffTest = new Command <DeviceCapability>(async c => await TestExecuteAsync(c, "off")); _injectionControl = injectionControl; _raspberryClient = raspberryClient; }
public DeviceComponentViewModel(IInjectionControl injectionControl) { ToDevices = new Command(async() => await injectionControl.NavigateAsync <DevicesPage>()); SelectedComponent = new Command <DeviceComponent>(async c => await SelectedComponentAsync(c)); _injectionControl = injectionControl; }