示例#1
0
        public ErroViewModel(Exception ex, IOpenUriService openService)
        {
            CurrentException = ex;

            OpenWebCommand       = new DelegateCommand <String>((p) => openService.Open(p));
            SendExceptionCommand = new DelegateCommand(async() => await SendException(ex));
        }
示例#2
0
        public MyRoomViewModel(
            IOpenUriService openUrlService)
        {
            _openUrlService = openUrlService;

            SetNeed();
        }
示例#3
0
        public MyRoomViewModel(
            IOpenUriService openUrlService,
            IAnalyticService analyticService)
        {
            _openUrlService  = openUrlService;
            _analyticService = analyticService;

            SetNeed();
        }
示例#4
0
        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();
        }
示例#6
0
        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();
        }
示例#7
0
 public AboutViewModel(IOpenUriService openService)
 {
     InitVersion();
     OpenWebCommand = new DelegateCommand <String>((p) => openService.Open(p));
 }