예제 #1
0
        public static WiaScanServer GetInstance()
        {
            if (_instance == null)
            {
                _instance = new WiaScanServer();
                _instance.Initialize();
            }

            return(_instance);
        }
예제 #2
0
파일: Form1.cs 프로젝트: killvxk/WiaScan64
 private void pbTestClientInfo_Click(object sender, EventArgs e)
 {
     try
     {
         _wsc = WiaScanServer.WiaScanServer.GetInstance();
     }
     catch (Exception ex)
     {
         Trace.WriteLine(ex.Message);
         throw;
     }
 }
예제 #3
0
파일: Form1.cs 프로젝트: killvxk/WiaScan64
 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;
     }
 }