Ejemplo n.º 1
0
 public void delete_sigplus()
 {
     this.ChangeLabelStatus("Status : None");
     if (STU != null)
     {
         STU = null;
     }
 }
Ejemplo n.º 2
0
        public void Lecture_signature()
        {
            Program.LogFich.Info("[Wacom_STU] Debut => Lecture_signature()");
            if (STU != null)
            {
                STU = null;
            }
            try
            {
                wgssSTU.UsbDevices usbDevices = new wgssSTU.UsbDevices();
                if (usbDevices.Count != 0)
                {
                    try
                    {
                        wgssSTU.IUsbDevice usbDevice = usbDevices[0]; // select a device

                        STU = new Form_Wacom_STU("Saisie de la signature", url, WebBrowser, this, usbDevice);

                        STU.ShowDialog();
                        Program.LogFich.Info("[Wacom_STU] Fin => Lecture_signature()");
                        this.ChangeLabelStatus("Status : None");
                    }
                    catch (Exception ex)
                    {
                        MessageBox.Show(ex.Message);
                        Program.LogFich.Error("[Wacom_STU] Lecture_signature() = " + ex.ToString());
                    }
                }
                else
                {
                    MessageBox.Show("No STU devices attached");
                    this.ChangeLabelStatus("Status : None");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("No STU devices attached");
                Program.LogFich.Error("[Wacom_STU] Lecture_signature() (usbDevices.Count) = " + ex.ToString());
            }
        }