Open() public method

public Open ( Applet applet, DeviceType type ) : void
applet Applet
type DeviceType
return void
Esempio n. 1
0
        protected void InitializeApplet()
        {
            _applet = new AppletProxy(this);
            Connect(AppletName, true, AppletCapabilities.Qvga);

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

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