Example #1
0
        void mon_FocusChangedFromApp(WWAMonitor arg1, string arg2)
        {
            Trace.WriteLine(":: " + arg2);

            CurrentApp = null;
            // TODO hide
        }
Example #2
0
        void mon_AppStarted(WWAMonitor mon, WWAApp app)
        {
            // First time we've seen the app.
            Trace.WriteLine("App Start: " + app);
            CurrentApp = app;

            app.Initialize();
        }
Example #3
0
        public void Initialize()
        {
            // Com.Init();

            var mon = new WWAMonitor();

            mon.AppStarted          += new Action <WWAMonitor, WWAApp>(mon_AppStarted);
            mon.AppSwitched         += new Action <WWAMonitor, WWAApp>(mon_AppSwitched);
            mon.FocusChangedFromApp += new Action <WWAMonitor, string>(mon_FocusChangedFromApp);
            mon.Start();
        }
Example #4
0
 void mon_AppSwitched(WWAMonitor mon, WWAApp app)
 {
     // User switched to a running app that we already know about.
     Trace.WriteLine("Switch: " + app);
     CurrentApp = app;
 }