Example #1
0
 public SplashPageViewModel(INavigationService navigationService, IOpenhabDatabase database, IEventAggregator eventAggregator, IResourceLoader resourceLoader)
 {
     _navigationService = navigationService;
     _database = database;
     _eventAggregator = eventAggregator;
     _resourceLoader = resourceLoader;
 }
 public SitemapsPageViewModel(IResourceLoader resourceLoader, INavigationService navigationService, IOpenhabDatabase database, IEventAggregator eventAggregator, IRestService restService)
 {
     this._navigationService = navigationService;
     this._resourceLoader = resourceLoader;
     this._database = database;
     this._eventAggregator = eventAggregator;
     this._restService = restService;
 }
Example #3
0
 public ChartWidget()
 {
     this.InitializeComponent();
     if (DesignMode.DesignModeEnabled) return;
     _database = App.Current.Container.Resolve<IOpenhabDatabase>();
     this.DataContextChanged += OnDataContextChanged;
     this.theImage.ImageFailed += TheImageOnImageFailed;
 }
Example #4
0
        public HomePageViewModel(IEventAggregator eventAggregator, IRestService restService, INavigationService navigationService,
            IPushClientService pushClientService, IOpenhabDatabase database)
        {
            _eventAggregator = eventAggregator;
            _restService = restService;
            _navigationService = navigationService;
            _pushClientService = pushClientService;
            _database = database;

            ShowSitemapsCommand = new DelegateCommand(ShowSitemaps);
            ShowSetupCommand = new DelegateCommand(ShowSetup);
            ShowInfoCommand = new DelegateCommand(ShowInfo);
        }
Example #5
0
 public IconControl()
 {
     this.InitializeComponent();
     if (DesignMode.DesignModeEnabled) return;
     _database = App.Current.Container.Resolve<IOpenhabDatabase>();
 }
Example #6
0
        public SetupPageViewModel(IOpenhabDatabase database, INavigationService navigationService, IRestService restService, IEventAggregator eventAggregator)
        {
            this._database = database;
            this._navigationService = navigationService;
            this._restService = restService;
            _eventAggregator = eventAggregator;

            SearchCommand = new DelegateCommand(Search);
            CheckCommand = new DelegateCommand(Check);
            NextCommand = new DelegateCommand(Next);
            FoundItemTappedCommand = new DelegateCommand<string>(ServerSelected);
        }