Exemple #1
0
 private void FormDocSign_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (sigBoxTopaz.GetTabletState() == 1)           //Accepting input.
     {
         sigBoxTopaz.SetTabletState(0);
     }
     sigBoxTopaz.Dispose();
 }
Exemple #2
0
        /*Cette fonction retourn vrai si le sigplusNET est connecté et faux sinon*/
        /*Use the TabletComTest = 1. This is the preferred method in version 3.00 and above instead of the older TabletMode = Add 128 mode. In this mode, If a Topaz tablet is plugged into the selected COM port, the TabletState can be set to 1. If tablet is not plugged into serial port, TabletState cannot be set to 1. A tablet plug-in detection scheme is shown below and assumes that the COM port was set in the Sigplus.ini file during install. */
        private bool isConnected(Topaz.SigPlusNET sigplus)
        {
            sigplus.SetTabletState(0);
            sigplus.SetTabletComTest(1);
            sigplus.SetTabletState(1);
            int TabletConnect = sigplus.GetTabletState();

            if (TabletConnect == 1)
            {
                return(true);
            }
            return(false);
        }