public ErroViewModel(Exception ex, IOpenUriService openService) { CurrentException = ex; OpenWebCommand = new DelegateCommand <String>((p) => openService.Open(p)); SendExceptionCommand = new DelegateCommand(async() => await SendException(ex)); }
public MyRoomViewModel( IOpenUriService openUrlService) { _openUrlService = openUrlService; SetNeed(); }
public MyRoomViewModel( IOpenUriService openUrlService, IAnalyticService analyticService) { _openUrlService = openUrlService; _analyticService = analyticService; SetNeed(); }
public MenuViewModel(IAuthenticationService authenticationService, IOpenUriService openUrlService) { _authenticationService = authenticationService; _openUrlService = openUrlService; MenuItems = new ObservableCollection <Models.MenuItem>(); InitMenuItems(); }
public MyRoomViewModel( IOpenUriService openUrlService, IAnalyticService analyticService) { _openUrlService = openUrlService; _analyticService = analyticService; // Сразу делаем активной вкладку потребностей SetNeed(); }
public MyRoomViewModel( IOpenUriService openUrlService, IAnalyticService analyticService, IRoomDevicesDataService roomDevicesDataService) { this.openUrlService = openUrlService; this.analyticService = analyticService; this.roomDevicesDataService = roomDevicesDataService; delayedTemperatureChangedTimer = new Timer(sliderInertia, async() => { await UpdateRoomTemperature(DesiredTemperature); }); delayedLightChangedTimer = new Timer(sliderInertia, async() => { await UpdateRoomLight(DesiredAmbientLight); }); SetNeed(); }
public AboutViewModel(IOpenUriService openService) { InitVersion(); OpenWebCommand = new DelegateCommand <String>((p) => openService.Open(p)); }