public AppConfigService(ApplicationEvents.ApplicationClosing appClosingEvent) { this.Settings = new AppSettingsModel(); // this.Load(); // appClosingEvent.Subscribe(e => this.Save(), true); }
public KickAndPunch( ReceiverEvents.DeviceRegistered deviceRegisteredEvent, ReceiverEvents.ButtonPressed buttonPressedEvent, ReceiverEvents.RegisterDevice registerDeviceRequest, ReceiverEvents.SensorHit deviceSensorHit, ReceiverEvents.DeviceStatusUpdate deviceStatusNotify, ApplicationEvents.ApplicationClosing appClosingEvent) { this.deviceRegisteredEvent = deviceRegisteredEvent; this.buttonPressedEvent = buttonPressedEvent; this.registerDeviceRequest = registerDeviceRequest; this.deviceSensorHit = deviceSensorHit; this.deviceStatusNotify = deviceStatusNotify; this.appClosingEvent = appClosingEvent; }
public KickAndPunch( ReceiverEvents.DeviceRegistered deviceRegisteredEvent, ReceiverEvents.ButtonPressed buttonPressedEvent, ReceiverEvents.RegisterDevice registerDeviceRequest, ReceiverEvents.SensorHit deviceSensorHit, ReceiverEvents.DeviceStatusUpdate deviceStatusNotify, ApplicationEvents.ApplicationClosing appClosingEvent) { this.deviceRegisteredEvent = deviceRegisteredEvent; this.buttonPressedEvent = buttonPressedEvent; this.registerDeviceRequest = registerDeviceRequest; this.deviceSensorHit = deviceSensorHit; this.deviceStatusNotify = deviceStatusNotify; this.appClosingEvent = appClosingEvent; }