/// <summary> /// endButton_Click() executes each time the end button on the GUI is clicked, it is used to terminate the software /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void endButton_Click(object sender, EventArgs e) { var instance = new Answer(); instance.terminateVerificationSoftware(); this.Close(); }
/// <summary> /// Main() creates an instance of the Answer class and displays the initial version of the GUI /// </summary> static void Main() { System.Windows.Forms.Application.EnableVisualStyles(); System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(false); // create an instance of the Answer class and display the initial GUI to allow user interaction Answer instance = new Answer(); instance.GUI.ShowDialog(); // display the initial GUI }
/// <summary> /// startButton_Click() executes each time the start button on the GUI is clicked, it serves to allow the user to continue verifying orders /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void startButton_Click(object sender, EventArgs e) { var instance = new Answer(); this.Hide(); instance.initKinectSensor(); }