Esempio n. 1
0
 public Application(MyHistoryOrientedPageSession session, Microsoft.MediaCenter.Hosting.AddInHost host)
 {
     this.session = session;
     if (session != null)
     {
         this.session.Application = this;
     }
     singleApplicationInstance = this;
 }
Esempio n. 2
0
 public Application(MyHistoryOrientedPageSession session, Microsoft.MediaCenter.Hosting.AddInHost host)
 {
     this.session = session;
     if (session != null)
     {
         this.session.Application = this;
     }
     singleApplicationInstance = this;
 }
Esempio n. 3
0
        public Application(MyHistoryOrientedPageSession session, Microsoft.MediaCenter.Hosting.AddInHost host)
        {
            this.session = session;
            if (session != null)
            {
                this.session.Application = this;
            }
            singleApplicationInstance = this;
            //wire up our mouseActiveHooker if enabled so we can know if the mouse is active over us
            if (Config.Instance.EnableMouseHook)
            {
                Kernel.Instance.MouseActiveHooker.MouseActive += new IsMouseActiveHooker.MouseActiveHandler(mouseActiveHooker_MouseActive);
            }
            //populate the config model choice
            ConfigModel = new Choice();
            ConfigModel.Options = ConfigPanelNames;

            //initialize our menu manager
            menuManager = new MenuManager();

            //initialize screen saver
            ScreenSaverTimer = new Timer() { AutoRepeat = true, Enabled = true, Interval = 60000 };
            ScreenSaverTimer.Tick += new EventHandler(ScreenSaverTimer_Tick);
        }
        public Application(MyHistoryOrientedPageSession session, Microsoft.MediaCenter.Hosting.AddInHost host)
        {

            this.session = session;
            this.addinHost = host;
            if (session != null)
            {
                this.session.Application = this;
            }
            singleApplicationInstance = this;

            //wire up our mouseActiveHooker so we can know if the mouse is active
            if (Config.EnableMouseHook)
            {
                Kernel.Instance.MouseActiveHooker.MouseActive += mouseActiveHooker_MouseActive;
            }

            //initialize our menu manager
            menuManager = new MenuManager();

            //initialize screen saver
            ScreenSaverTimer = new Timer() { AutoRepeat = true, Enabled = true, Interval = 60000 };
            ScreenSaverTimer.Tick += ScreenSaverTimer_Tick;

            //initialize auto logoff
            IdleTimer = new Timer() { AutoRepeat = true, Enabled = true, Interval = 60000 };
            IdleTimer.Tick += IdleTimer_Tick;
        }