Пример #1
0
        /// <summary>
        ///
        /// </summary>
        public HWServer(HWRecognitionForm parentForm)
        {
            gui = parentForm;
            ThreadStart threadDelegate = new ThreadStart(listenForConnections);
            Thread      thread         = new Thread(threadDelegate);

            thread.Start();
        }
Пример #2
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);
        }
Пример #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);
        }
Пример #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;
 }
Пример #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;
 }
Пример #6
0
 /// <summary>
 /// 
 /// </summary>
 public HWServer(HWRecognitionForm parentForm)
 {
     gui = parentForm;
     ThreadStart threadDelegate = new ThreadStart(listenForConnections);
     Thread thread = new Thread(threadDelegate);
     thread.Start();
 }