/* --------------------------------------------------------------------------- * MainWindow.cs (c) 2009 Micro-key bv * --------------------------------------------------------------------------- * Micro-key bv * Industrieweg 28, 9804 TG Noordhorn * Postbus 92, 9800 AB Zuidhorn * The Netherlands * Tel: +31 594 503020 * Fax: +31 594 505825 * Email: support@microkey.nl * Web: www.microkey.nl * --------------------------------------------------------------------------- * Description: Main Form file. Bootup and Initialisation of the whole form * --------------------------------------------------------------------------- * Version(s): 0.1, Jan 08, 2008, MMi * Creation. * --------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------- * System use files * --------------------------------------------------------------------------- */ using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO.Ports; using System.Threading; /* --------------------------------------------------------------------------- * Local function definitions * --------------------------------------------------------------------------- */ namespace QUA_2475_designtest { public partial class mainWindow : Form { public mainWindow() { InitializeComponent(); initialise(); /* Init Variables, Arrays etc */ } private void exit_Click(object sender, EventArgs e) { /* Quit Window Session */ Master_receiveMessages = false; this.Close(); } /* TimeOut Function * This runs always in an own Thread * Functrion is called directly before a Test is started. When Time * is over and the Test is still active, then call TimeOut Procedure */ private void TimeoutThread() { Thread.Sleep(100000); if (activeTest == true) { TestIsTimeout(actualTest); } } } }