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; }
public ChartWidget() { this.InitializeComponent(); if (DesignMode.DesignModeEnabled) return; _database = App.Current.Container.Resolve<IOpenhabDatabase>(); this.DataContextChanged += OnDataContextChanged; this.theImage.ImageFailed += TheImageOnImageFailed; }
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); }
public IconControl() { this.InitializeComponent(); if (DesignMode.DesignModeEnabled) return; _database = App.Current.Container.Resolve<IOpenhabDatabase>(); }
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); }