Beispiel #1
0
 public SettingsViewModel(AppConfig config, IThemeSelectorService themeSelectorService, ISystemService systemService, IApplicationInfoService applicationInfoService)
 {
     _config = config;
     _themeSelectorService   = themeSelectorService;
     _systemService          = systemService;
     _applicationInfoService = applicationInfoService;
 }
Beispiel #2
0
 public ApplicationHostService(INavigationService navigationService, IThemeSelectorService themeSelectorService, IPersistAndRestoreService persistAndRestoreService, IToastNotificationsService toastNotificationsService)
 {
     _navigationService         = navigationService;
     _themeSelectorService      = themeSelectorService;
     _persistAndRestoreService  = persistAndRestoreService;
     _toastNotificationsService = toastNotificationsService;
 }
Beispiel #3
0
 public ApplicationHostService(IServiceProvider serviceProvider, INavigationService navigationService, IThemeSelectorService themeSelectorService, IPersistAndRestoreService persistAndRestoreService)
 {
     _serviceProvider          = serviceProvider;
     _navigationService        = navigationService;
     _themeSelectorService     = themeSelectorService;
     _persistAndRestoreService = persistAndRestoreService;
 }
//}]}
        public ActivationService(/*{[{*/ IThemeSelectorService themeSelectorService /*}]}*/)
        {
//^^
//{[{
            _themeSelectorService = themeSelectorService;
//}]}
        }
 public SettingsViewModel(IOptions <AppConfig> config, IThemeSelectorService themeSelectorService, IUserDataService userDataService, IIdentityService identityService)
 {
     _config = config.Value;
     _themeSelectorService = themeSelectorService;
     _userDataService      = userDataService;
     _identityService      = identityService;
 }
 public CustomControl()
 {
     InitializeComponent();
     _themeSelectorService = _host.Services.GetService(typeof(IThemeSelectorService)) as IThemeSelectorService;
     _themeSelectorService.ThemeChanged += OnThemeChanged;
     GetColors();
 }
 public ApplicationHostService(INavigationService navigationService, IRightPaneService rightPaneService, IThemeSelectorService themeSelectorService, IPersistAndRestoreService persistAndRestoreService)
 {
     _navigationService        = navigationService;
     _rightPaneService         = rightPaneService;
     _themeSelectorService     = themeSelectorService;
     _persistAndRestoreService = persistAndRestoreService;
 }
//}]}
        public ApplicationHostService(/*{[{*/ IThemeSelectorService themeSelectorService /*}]}*/)
        {
//^^
//{[{
            _themeSelectorService = themeSelectorService;
//}]}
        }
Beispiel #9
0
 public SettingsViewModel(IOptions <AppConfig> appConfig, IThemeSelectorService themeSelectorService, ISystemService systemService, IApplicationInfoService applicationInfoService)
 {
     _appConfig              = appConfig.Value;
     _themeSelectorService   = themeSelectorService;
     _systemService          = systemService;
     _applicationInfoService = applicationInfoService;
 }
 public XAMLIslandControl()
 {
     InitializeComponent();
     _themeSelectorService = ((App)Application.Current).GetService <IThemeSelectorService>();
     _themeSelectorService.ThemeChanged += OnThemeChanged;
     GetColors();
 }
Beispiel #11
0
        public SettingsViewModel(IThemeSelectorService themeSelectorService)
        {
            _themeSelectorService = themeSelectorService;

            _elementTheme = _themeSelectorService.Theme;

            SwitchThemeCommand = new AsyncRelayCommand <ElementTheme>(SwitchThemeCommandBehavior);
        }
Beispiel #12
0
 public ActivationService(IShellWindow shellWindow, ActivationHandler <LaunchActivatedEventArgs> defaultHandler, IEnumerable <IActivationHandler> activationHandlers, INavigationService navigationService, IThemeSelectorService themeSelectorService)
 {
     App.MainWindow        = shellWindow as Window;
     _defaultHandler       = defaultHandler;
     _activationHandlers   = activationHandlers;
     _navigationService    = navigationService;
     _themeSelectorService = themeSelectorService;
 }
 public SettingsViewModel(AppConfig config, IThemeSelectorService themeSelectorService, ISystemService systemService, IUserDataService userDataService, IIdentityService identityService)
 {
     _config = config;
     _themeSelectorService = themeSelectorService;
     _systemService        = systemService;
     _userDataService      = userDataService;
     _identityService      = identityService;
 }
 public ApplicationHostService(INavigationService navigationService, IThemeSelectorService themeSelectorService, IPersistAndRestoreService persistAndRestoreService, IIdentityService identityService, IUserDataService userDataService, AppConfig config)
 {
     _navigationService        = navigationService;
     _themeSelectorService     = themeSelectorService;
     _persistAndRestoreService = persistAndRestoreService;
     _identityService          = identityService;
     _userDataService          = userDataService;
     _config = config;
 }
 public ApplicationHostService(IServiceProvider serviceProvider, IEnumerable <IActivationHandler> activationHandlers, INavigationService navigationService, IRightPaneService rightPaneService, IThemeSelectorService themeSelectorService, IPersistAndRestoreService persistAndRestoreService)
 {
     _serviceProvider          = serviceProvider;
     _activationHandlers       = activationHandlers;
     _navigationService        = navigationService;
     _rightPaneService         = rightPaneService;
     _themeSelectorService     = themeSelectorService;
     _persistAndRestoreService = persistAndRestoreService;
 }
Beispiel #16
0
 public SettingsPage(IOptions <AppConfig> appConfig, IThemeSelectorService themeSelectorService, ISystemService systemService, IApplicationInfoService applicationInfoService)
 {
     _appConfig              = appConfig.Value;
     _themeSelectorService   = themeSelectorService;
     _systemService          = systemService;
     _applicationInfoService = applicationInfoService;
     InitializeComponent();
     DataContext = this;
 }
 public ApplicationHostService(IServiceProvider serviceProvider, IEnumerable <IActivationHandler> activationHandlers, INavigationService navigationService, IThemeSelectorService themeSelectorService, IPersistAndRestoreService persistAndRestoreService, IOptions <AppConfig> appConfig, IToastNotificationsService toastNotificationsService)
 {
     _serviceProvider          = serviceProvider;
     _activationHandlers       = activationHandlers;
     _navigationService        = navigationService;
     _themeSelectorService     = themeSelectorService;
     _persistAndRestoreService = persistAndRestoreService;
     _appConfig = appConfig.Value;
     _toastNotificationsService = toastNotificationsService;
 }
 public ApplicationHostService(IServiceProvider serviceProvider, INavigationService navigationService, IThemeSelectorService themeSelectorService, IPersistAndRestoreService persistAndRestoreService, IIdentityService identityService, IUserDataService userDataService, IOptions <AppConfig> config)
 {
     _serviceProvider          = serviceProvider;
     _navigationService        = navigationService;
     _themeSelectorService     = themeSelectorService;
     _persistAndRestoreService = persistAndRestoreService;
     _identityService          = identityService;
     _userDataService          = userDataService;
     _config = config.Value;
 }
Beispiel #19
0
 public ApplicationHostService(IServiceProvider serviceProvider, IEnumerable <IActivationHandler> activationHandlers, INavigationService navigationService, IRightPaneService rightPaneService, IThemeSelectorService themeSelectorService, IPersistAndRestoreService persistAndRestoreService, IToastNotificationsService toastNotificationsService, IIdentityService identityService, IUserDataService userDataService, IOptions <AppConfig> config)
 {
     _serviceProvider           = serviceProvider;
     _activationHandlers        = activationHandlers;
     _navigationService         = navigationService;
     _rightPaneService          = rightPaneService;
     _themeSelectorService      = themeSelectorService;
     _persistAndRestoreService  = persistAndRestoreService;
     _toastNotificationsService = toastNotificationsService;
     _identityService           = identityService;
     _userDataService           = userDataService;
     _appConfig = config.Value;
 }
Beispiel #20
0
        public ActivationService(IShellWindow shellWindow, ActivationHandler <LaunchActivatedEventArgs> defaultHandler,
                                 IEnumerable <IActivationHandler> activationHandlers, INavigationService navigationService,
                                 IThemeSelectorService themeSelectorService, ILanguageSelectorService languageSelectorService,
                                 ISettingsService settingsService)
        {
            App.MainWindow = shellWindow as Window;

            this.defaultHandler          = defaultHandler;
            this.activationHandlers      = activationHandlers;
            this.navigationService       = navigationService;
            this.themeSelectorService    = themeSelectorService;
            this.languageSelectorService = languageSelectorService;
            this.settingsService         = settingsService;
        }
Beispiel #21
0
 public SettingsViewModel(IThemeSelectorService themeSelectorService)
 {
     _themeSelectorService = themeSelectorService;
     _elementTheme         = _themeSelectorService.Theme;
     VersionDescription    = GetVersionDescription();
 }