Esempio n. 1
0
        private static ChromeMonitor CreateMonitor(FreezerSettings settings)
        {
            var monitor = new ChromeMonitor(settings);

            monitor.StateChanged.Subscribe(OnStateChanged);
            monitor.Errors.Subscribe(OnFreezeError);
            monitor.TabsStateChanged.Subscribe(OnTabsStateChanged);
            return(monitor);
        }
Esempio n. 2
0
        public static void Main( )
        {
            var settings = FreezerSettings.Instance;

            _monitor     = CreateMonitor(settings);
            _hookManager = new HookManager(settings, _monitor);
            _hookManager.Subscribe( );

            AppExitHook.OnExit += OnExit;
            Application.Run( );
        }
Esempio n. 3
0
 public HookManager(FreezerSettings settings, ChromeMonitor monitor)
 {
     Settings = settings;
     Monitor  = monitor;
 }