Ejemplo n.º 1
0
        public AppControllerCore(AppKeeper keeper, SettingsCore settings)
        {
            this._keeper  = keeper ?? throw new ArgumentNullException(nameof(keeper));
            this.Settings = settings ?? throw new ArgumentNullException(nameof(settings));

            LanguageService.SwitchDefault();

            Monitors = new ObservableCollection <MonitorViewModel>();
            BindingOperations.EnableCollectionSynchronization(Monitors, _monitorsLock);

            NotifyIconContainer = new NotifyIconContainer();

            _displayWatcher    = new DisplayWatcher();
            _powerWatcher      = new PowerWatcher();
            _brightnessWatcher = new BrightnessWatcher();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            var displayWatcher = new DisplayWatcher();

            System.Threading.Thread.Sleep(System.Threading.Timeout.Infinite);
        }
Ejemplo n.º 3
0
 public void Start()
 {
     displayWatcher = new DisplayWatcher();
 }