Esempio n. 1
0
        public Hooks(Device device)
        {
            _device = device;

            _hookListenerWindow.SetForegroundApplet += delegate {
                _device.SetAsLCDForegroundApp(true);
            };
        }
Esempio n. 2
0
        public PioneerHooks(Device device)
        {
            _device = device;

            // register the event of the inner native window.
            _hookListenerWindow.KeyPressed += delegate(object sender, KeyPressedEventArgs args) {
                if (KeyPressed != null) KeyPressed(this, args);
            };
            _hookListenerWindow.SetForegroundApplet += delegate(object sender, EventArgs args) {
                _device.SetAsLCDForegroundApp(true);
            };
        }
Esempio n. 3
0
        public RandomImageApplet()
        {
            // setup webclient and callback
            wc = new WebClient();
            wc.DownloadDataCompleted += new DownloadDataCompletedEventHandler(wc_DownloadDataCompleted);
            wc.Proxy = null;

            // register applet with logitech gaming softwware
            this.Connect("Random Image", true, AppletCapabilities.Qvga);

            // register device with applet
            this.device = new Device();
            device.Open(this, DeviceType.Qvga);
        }
Esempio n. 4
0
        protected WinFormsApplet()
        {
            // we don't want the designer to really call this constructor
            if (LicenseManager.UsageMode == LicenseUsageMode.Designtime) return;

            _bm = new Bitmap(320, 240, PixelFormat.Format32bppArgb);
            _gfx = Graphics.FromImage(_bm);
            UpdateLcdScreen += WinFormsApplet_UpdateLcdScreen;

            _applet = new AppletProxy(this);
            Connect(AppletName, true, AppletCapabilities.Qvga);

            Device = new Device();
            Device.Open(_applet, DeviceType.Qvga);
        }
        protected MonochromeLCDDisplay(string friendlyName, bool autoStartable)
        {
            try
            {
                Connect(friendlyName, false, AppletCapabilities.Monochrome);

                Device = new Device();
                Device.Open(this, DeviceType.Monochrome);

                Surface = new Surface(160, 43, 1);
                UpdateLcdScreen += _UpdateLcdScreen;
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
            }
        }
Esempio n. 6
0
        protected void InitializeApplet()
        {
            _applet = new AppletProxy(this);
            Connect(AppletName, true, AppletCapabilities.Qvga);

            Device = new Device();
            Device.Open(_applet, DeviceType.Qvga);
        }