コード例 #1
0
 public MainPage(IThemeControl themeControl, IPageControl pageControl, IInjectionControl injectionControl)
 {
     InitializeComponent();
     _themeControl     = themeControl;
     _pageControl      = pageControl;
     _injectionControl = injectionControl;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 public DeviceComponentViewModel(IInjectionControl injectionControl)
 {
     ToDevices         = new Command(async() => await injectionControl.NavigateAsync <DevicesPage>());
     SelectedComponent = new Command <DeviceComponent>(async c => await SelectedComponentAsync(c));
     _injectionControl = injectionControl;
 }