/// <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); }
/// <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; }