protected void InitializeApplet() { _applet = new AppletProxy(this); Connect(AppletName, true, AppletCapabilities.Qvga); Device = new Device(); Device.Open(_applet, DeviceType.Qvga); }
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); }
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); } }