Exemple #1
0
        //The plugin calls in this class were added in order to use a Topaz pad in a RDP/Citrix remote session environment so that signature pads can be
        //plugged in on the client computer while the signature displays in the SigPlusNET UI control on the terminal server.  The signature pad and the
        //UI control are always kept in sync, i.e. the state, encryption and compression modes, key data and key string, signature string etc.  This means
        //the GetTopaz... methods could retrieve data from the UI control and not the remote signature pad.  The GetTopazNumberOfTabletPoints method returns
        //0 if sent to the remote device, so it must be called on the local UI control.

        public static Control GetTopaz()
        {
            Control retVal = new SigPlusNET();

            retVal.HandleDestroyed += new EventHandler(topazWrapper_HandleDestroyed);
            return(retVal);
        }
Exemple #2
0
        // GET: api/SigPlus/5
        public string Get(string name)
        {
            SigPlusNET sig    = new SigPlusNET("Web");
            int        result = sig.GetTabletState();

            return(result.ToString());
        }
Exemple #3
0
        public IHttpActionResult GetTabletState()
        {
            SigPlusNET sig    = new SigPlusNET("Web");
            int        result = sig.GetTabletState();

            //return Ok(result.ToString());
            return(Ok(result));
        }
Exemple #4
0
        public void Initialize(string signatureFileDirectory)
        {
            _device        = new SigPlusNET();
            _device.PenUp += PenUp;
            Load(null, null);
            _fileDirectory = signatureFileDirectory;

            if (_device.TabletConnectQuery() == true) // checking whether there is connection
            {
                Clear();
                _device.SetTabletLogicalXSize(2000);
                _device.SetTabletLogicalYSize(700);
                _device.SetDisplayPenWidth(8);
                _device.SetImagePenWidth(10);
                _device.SetLCDCaptureMode(2);
                _device.ClearTablet();
                _device.SetTabletState(1);
            }
            else
            {
                throw new Exception("No Signature pad found");
            }
        }