Ejemplo n.º 1
0
        public static WiaScanServer GetInstance()
        {
            if (_instance == null)
            {
                _instance = new WiaScanServer();
                _instance.Initialize();
            }

            return(_instance);
        }
Ejemplo n.º 2
0
 private void pbTestClientInfo_Click(object sender, EventArgs e)
 {
     try
     {
         _wsc = WiaScanServer.WiaScanServer.GetInstance();
     }
     catch (Exception ex)
     {
         Trace.WriteLine(ex.Message);
         throw;
     }
 }
Ejemplo n.º 3
0
 private void pbPmAcquire_Click(object sender, EventArgs e)
 {
     try
     {
         _wsc = WiaScanServer.WiaScanServer.GetInstance();
         _wsc.SendServerCommand(PM_ACQUIRE);
     }
     catch (Exception ex)
     {
         Trace.WriteLine(ex.Message);
         throw;
     }
 }