Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        public HWServer(HWRecognitionForm parentForm)
        {
            gui = parentForm;
            ThreadStart threadDelegate = new ThreadStart(listenForConnections);
            Thread      thread         = new Thread(threadDelegate);

            thread.Start();
        }
        public static void Main()
        {
            // these calls have to happen before the form is constructed
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            // create the little popup (automatically minimize it after 3 seconds?)
            HWRecognitionForm form = new HWRecognitionForm();

            // Fire up the HWRecognition Server
            server = new HWServer(form);

            ApplicationContext context = new ApplicationContext();
            context.MainForm = form;

            Application.Run(context);
        }
Esempio n. 3
0
        public static void Main()
        {
            // these calls have to happen before the form is constructed
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            // create the little popup (automatically minimize it after 3 seconds?)
            HWRecognitionForm form = new HWRecognitionForm();

            // Fire up the HWRecognition Server
            server = new HWServer(form);

            ApplicationContext context = new ApplicationContext();

            context.MainForm = form;

            Application.Run(context);
        }
Esempio n. 4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="clientSocket"></param>
 /// <param name="clientID"></param>
 /// <param name="theGui"></param>
 public ClientWorkerThread(Socket clientSocket, int clientID, HWRecognitionForm theGui)
 {
     client = clientSocket;
     id     = clientID;
     gui    = theGui;
 }
Esempio n. 5
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="clientSocket"></param>
 /// <param name="clientID"></param>
 /// <param name="theGui"></param>
 public ClientWorkerThread(Socket clientSocket, int clientID, HWRecognitionForm theGui)
 {
     client = clientSocket;
     id = clientID;
     gui = theGui;
 }
Esempio n. 6
0
 /// <summary>
 /// 
 /// </summary>
 public HWServer(HWRecognitionForm parentForm)
 {
     gui = parentForm;
     ThreadStart threadDelegate = new ThreadStart(listenForConnections);
     Thread thread = new Thread(threadDelegate);
     thread.Start();
 }