Esempio n. 1
0
        public BrowserWindow(string[,] links, int linkCount, string title, GameDetails detailsWindow)
        {
            InitializeComponent();
            this.links     = links;
            this.linkCount = linkCount;
            this.title     = title;
            this.details   = detailsWindow;
            InitializeBrowser();
            InitializeLinks();
            InitializeDesign();

            gkh.HookedKeys.Add(Keys.MediaPlayPause);
            gkh.KeyDown += new KeyEventHandler(gkh_KeyDown);
        }
Esempio n. 2
0
        public Overlay(string name, string[,] links, int linkCount, GameDetails details)
        {
            InitializeComponent();
            LockButton.BackgroundImage = Image.FromFile("Resources\\Theme\\Unlock.png");
            this.details   = details;
            title          = name;
            this.links     = links;
            this.linkCount = linkCount;
            InitializeName();
            InitializeTimer();

            InitializeSystemClock();

            gkh.HookedKeys.Add(Keys.Tab);
            gkh.HookedKeys.Add(Keys.F2);
            screenshotHook.HookedKeys.Add(Keys.LShiftKey);
            gkh.KeyDown            += new KeyEventHandler(gkh_KeyDown);
            screenshotHook.KeyDown += new KeyEventHandler(screenshotHook_KeyDown);
            screenshotHook.KeyUp   += new KeyEventHandler(screenshotHook_KeyUp);
        }