Esempio n. 1
0
 public ThemeService(ConfigService config,
                     SystemResourcesService systemResources)
 {
     this.config          = config;
     this.systemResources = systemResources;
     theme = new Theme();
 }
Esempio n. 2
0
 public ConfigService(SystemResourcesService systemResources)
 {
     this.systemResources = systemResources;
     configPath           = Path.Combine(AppDomain.CurrentDomain.BaseDirectory,
                                         dir,
                                         "config.xml");
     xmlExtensions = new XmlExtensions(configPath);
     oldOptions_   = new OptionsModel();
 }
Esempio n. 3
0
        public MainService(App app,
                           ScreenService screen,
                           ConfigService config,
                           CacheService cache,
                           StatisticService statistic,
                           ThemeService theme,
                           SystemResourcesService systemResources)
        {
            this.screen          = screen;
            this.config          = config;
            this.cache           = cache;
            this.statistic       = statistic;
            this.theme           = theme;
            this.systemResources = systemResources;

            app.Exit += new ExitEventHandler(app_Exit);
            SystemEvents.PowerModeChanged += new PowerModeChangedEventHandler(OnPowerModeChanged);
        }