Show StartupScreen.cs syntax highlighted
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace New_Study_Project
{
/// <summary>
/// Summary description for StartupScreen.
/// </summary>
public class StartupScreen : System.Windows.Forms.Form
{
private System.Windows.Forms.GroupBox GroupNumberGroupBox;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.GroupBox StorageTypeGroupBox;
private System.Windows.Forms.RadioButton StorageRadio_Mobile;
private System.Windows.Forms.RadioButton StorageRadio_Fixed;
private System.Windows.Forms.GroupBox MaterialsGroupBox;
private System.Windows.Forms.RadioButton MaterialsRadio_LOTR;
private System.Windows.Forms.RadioButton MaterialsRadio_Friends;
private System.Windows.Forms.GroupBox DisplayCondGroupBox;
private System.Windows.Forms.RadioButton DisplayRadio_TableS2S;
private System.Windows.Forms.RadioButton DisplayRadio_TableAS;
private System.Windows.Forms.RadioButton DisplayRadio_TableF2F;
private System.Windows.Forms.RadioButton DisplayRadio_Wall;
private System.Windows.Forms.RadioButton MaterialsRadio_Practice2;
private System.Windows.Forms.RadioButton MaterialsRadio_Practice1;
private Workspace workingSpace;
private PenCalibration PCalibrate;
private testCalibration TestCalibration;
private static bool exitStatus;
#region StartupScreen Variables
public enum DisplayType {TableS2S, TableAS, TableF2F, Wall};
public enum MaterialType {Friends, LOTR, Practice1, Practice2};
public enum StorageType {Fixed, Mobile};
protected string groupID;
protected DisplayType display;
protected StorageType storage;
protected MaterialType material;
protected int trialNum;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.LinkLabel linkLabel1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.LinkLabel linkLabel2;
private System.Windows.Forms.GroupBox trial_groupBox;
private System.Windows.Forms.RadioButton TrialRadio_Practice2;
private System.Windows.Forms.RadioButton TrialRadio_Practice1;
private System.Windows.Forms.RadioButton TrialRadio_Trial2;
private System.Windows.Forms.RadioButton TrialRadio_Trial1;
public DisplayType Display {
get {
return this.display;
}
set {
this.display = value;
}
}
public StorageType Storage {
get {
return this.storage;
}
set {
this.storage = value;
}
}
public MaterialType Material {
get {
return this.material;
}
set {
this.material = value;
}
}
public int TrialNum
{
get
{
return this.trialNum;
}
}
public int GroupID
{
get {
return Convert.ToInt32(this.textBox1.Text);
}
}
#endregion
private System.ComponentModel.Container components = null;
public StartupScreen()
{
exitStatus = false;
InitializeComponent();
this.StorageRadio_Fixed.Select();
this.MaterialsRadio_Practice1.Select();
this.DisplayRadio_TableS2S.Select();
this.TrialRadio_Practice1.Select();
this.textBox1.Text = "0";
}
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
private void InitializeComponent()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(StartupScreen));
this.GroupNumberGroupBox = new System.Windows.Forms.GroupBox();
this.textBox1 = new System.Windows.Forms.TextBox();
this.button1 = new System.Windows.Forms.Button();
this.StorageTypeGroupBox = new System.Windows.Forms.GroupBox();
this.StorageRadio_Mobile = new System.Windows.Forms.RadioButton();
this.StorageRadio_Fixed = new System.Windows.Forms.RadioButton();
this.MaterialsGroupBox = new System.Windows.Forms.GroupBox();
this.MaterialsRadio_Practice2 = new System.Windows.Forms.RadioButton();
this.MaterialsRadio_Practice1 = new System.Windows.Forms.RadioButton();
this.MaterialsRadio_LOTR = new System.Windows.Forms.RadioButton();
this.MaterialsRadio_Friends = new System.Windows.Forms.RadioButton();
this.DisplayCondGroupBox = new System.Windows.Forms.GroupBox();
this.DisplayRadio_Wall = new System.Windows.Forms.RadioButton();
this.DisplayRadio_TableF2F = new System.Windows.Forms.RadioButton();
this.DisplayRadio_TableAS = new System.Windows.Forms.RadioButton();
this.DisplayRadio_TableS2S = new System.Windows.Forms.RadioButton();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.button2 = new System.Windows.Forms.Button();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.linkLabel2 = new System.Windows.Forms.LinkLabel();
this.label1 = new System.Windows.Forms.Label();
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
this.trial_groupBox = new System.Windows.Forms.GroupBox();
this.TrialRadio_Practice2 = new System.Windows.Forms.RadioButton();
this.TrialRadio_Practice1 = new System.Windows.Forms.RadioButton();
this.TrialRadio_Trial2 = new System.Windows.Forms.RadioButton();
this.TrialRadio_Trial1 = new System.Windows.Forms.RadioButton();
this.GroupNumberGroupBox.SuspendLayout();
this.StorageTypeGroupBox.SuspendLayout();
this.MaterialsGroupBox.SuspendLayout();
this.DisplayCondGroupBox.SuspendLayout();
this.groupBox1.SuspendLayout();
this.trial_groupBox.SuspendLayout();
this.SuspendLayout();
//
// GroupNumberGroupBox
//
this.GroupNumberGroupBox.Controls.Add(this.textBox1);
this.GroupNumberGroupBox.Location = new System.Drawing.Point(72, 88);
this.GroupNumberGroupBox.Name = "GroupNumberGroupBox";
this.GroupNumberGroupBox.Size = new System.Drawing.Size(112, 56);
this.GroupNumberGroupBox.TabIndex = 10;
this.GroupNumberGroupBox.TabStop = false;
this.GroupNumberGroupBox.Text = "Group Number";
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(8, 24);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(96, 20);
this.textBox1.TabIndex = 5;
this.textBox1.Text = "";
this.textBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
//
// button1
//
this.button1.DialogResult = System.Windows.Forms.DialogResult.OK;
this.button1.Location = new System.Drawing.Point(8, 608);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(112, 24);
this.button1.TabIndex = 9;
this.button1.Text = "Start";
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// StorageTypeGroupBox
//
this.StorageTypeGroupBox.Controls.Add(this.StorageRadio_Mobile);
this.StorageTypeGroupBox.Controls.Add(this.StorageRadio_Fixed);
this.StorageTypeGroupBox.Location = new System.Drawing.Point(72, 232);
this.StorageTypeGroupBox.Name = "StorageTypeGroupBox";
this.StorageTypeGroupBox.Size = new System.Drawing.Size(112, 72);
this.StorageTypeGroupBox.TabIndex = 8;
this.StorageTypeGroupBox.TabStop = false;
this.StorageTypeGroupBox.Text = "Storage Type";
//
// StorageRadio_Mobile
//
this.StorageRadio_Mobile.Location = new System.Drawing.Point(16, 40);
this.StorageRadio_Mobile.Name = "StorageRadio_Mobile";
this.StorageRadio_Mobile.Size = new System.Drawing.Size(80, 24);
this.StorageRadio_Mobile.TabIndex = 2;
this.StorageRadio_Mobile.Tag = "Mobile";
this.StorageRadio_Mobile.Text = "Mobile";
this.StorageRadio_Mobile.CheckedChanged += new System.EventHandler(this.StorageRadio_Mobile_CheckedChanged);
//
// StorageRadio_Fixed
//
this.StorageRadio_Fixed.Checked = true;
this.StorageRadio_Fixed.Location = new System.Drawing.Point(16, 16);
this.StorageRadio_Fixed.Name = "StorageRadio_Fixed";
this.StorageRadio_Fixed.Size = new System.Drawing.Size(80, 24);
this.StorageRadio_Fixed.TabIndex = 0;
this.StorageRadio_Fixed.TabStop = true;
this.StorageRadio_Fixed.Tag = "Fixed";
this.StorageRadio_Fixed.Text = "Fixed";
this.StorageRadio_Fixed.CheckedChanged += new System.EventHandler(this.StorageRadio_Fixed_CheckedChanged);
//
// MaterialsGroupBox
//
this.MaterialsGroupBox.Controls.Add(this.MaterialsRadio_Practice2);
this.MaterialsGroupBox.Controls.Add(this.MaterialsRadio_Practice1);
this.MaterialsGroupBox.Controls.Add(this.MaterialsRadio_LOTR);
this.MaterialsGroupBox.Controls.Add(this.MaterialsRadio_Friends);
this.MaterialsGroupBox.Location = new System.Drawing.Point(8, 400);
this.MaterialsGroupBox.Name = "MaterialsGroupBox";
this.MaterialsGroupBox.Size = new System.Drawing.Size(240, 80);
this.MaterialsGroupBox.TabIndex = 12;
this.MaterialsGroupBox.TabStop = false;
this.MaterialsGroupBox.Text = "Materials";
//
// MaterialsRadio_Practice2
//
this.MaterialsRadio_Practice2.Location = new System.Drawing.Point(16, 48);
this.MaterialsRadio_Practice2.Name = "MaterialsRadio_Practice2";
this.MaterialsRadio_Practice2.Size = new System.Drawing.Size(80, 24);
this.MaterialsRadio_Practice2.TabIndex = 4;
this.MaterialsRadio_Practice2.Tag = "Practice2";
this.MaterialsRadio_Practice2.Text = "Practice 2";
this.MaterialsRadio_Practice2.CheckedChanged += new System.EventHandler(this.MaterialsRadio_Practice2_CheckedChanged);
//
// MaterialsRadio_Practice1
//
this.MaterialsRadio_Practice1.Checked = true;
this.MaterialsRadio_Practice1.Location = new System.Drawing.Point(16, 24);
this.MaterialsRadio_Practice1.Name = "MaterialsRadio_Practice1";
this.MaterialsRadio_Practice1.Size = new System.Drawing.Size(80, 24);
this.MaterialsRadio_Practice1.TabIndex = 3;
this.MaterialsRadio_Practice1.TabStop = true;
this.MaterialsRadio_Practice1.Tag = "Practice 1";
this.MaterialsRadio_Practice1.Text = "Practice 1";
this.MaterialsRadio_Practice1.CheckedChanged += new System.EventHandler(this.MaterialsRadio_Practice1_CheckedChanged);
//
// MaterialsRadio_LOTR
//
this.MaterialsRadio_LOTR.Location = new System.Drawing.Point(144, 48);
this.MaterialsRadio_LOTR.Name = "MaterialsRadio_LOTR";
this.MaterialsRadio_LOTR.Size = new System.Drawing.Size(80, 24);
this.MaterialsRadio_LOTR.TabIndex = 2;
this.MaterialsRadio_LOTR.Tag = "LOTR";
this.MaterialsRadio_LOTR.Text = "LOTR";
this.MaterialsRadio_LOTR.CheckedChanged += new System.EventHandler(this.MaterialsRadio_LOTR_CheckedChanged);
//
// MaterialsRadio_Friends
//
this.MaterialsRadio_Friends.Checked = true;
this.MaterialsRadio_Friends.Location = new System.Drawing.Point(144, 24);
this.MaterialsRadio_Friends.Name = "MaterialsRadio_Friends";
this.MaterialsRadio_Friends.Size = new System.Drawing.Size(80, 24);
this.MaterialsRadio_Friends.TabIndex = 0;
this.MaterialsRadio_Friends.TabStop = true;
this.MaterialsRadio_Friends.Tag = "Friends";
this.MaterialsRadio_Friends.Text = "Friends";
this.MaterialsRadio_Friends.CheckedChanged += new System.EventHandler(this.MaterialsRadio_Friends_CheckedChanged);
//
// DisplayCondGroupBox
//
this.DisplayCondGroupBox.Controls.Add(this.DisplayRadio_Wall);
this.DisplayCondGroupBox.Controls.Add(this.DisplayRadio_TableF2F);
this.DisplayCondGroupBox.Controls.Add(this.DisplayRadio_TableAS);
this.DisplayCondGroupBox.Controls.Add(this.DisplayRadio_TableS2S);
this.DisplayCondGroupBox.Location = new System.Drawing.Point(8, 312);
this.DisplayCondGroupBox.Name = "DisplayCondGroupBox";
this.DisplayCondGroupBox.Size = new System.Drawing.Size(240, 80);
this.DisplayCondGroupBox.TabIndex = 13;
this.DisplayCondGroupBox.TabStop = false;
this.DisplayCondGroupBox.Text = "Display Condition";
//
// DisplayRadio_Wall
//
this.DisplayRadio_Wall.Location = new System.Drawing.Point(144, 48);
this.DisplayRadio_Wall.Name = "DisplayRadio_Wall";
this.DisplayRadio_Wall.Size = new System.Drawing.Size(80, 24);
this.DisplayRadio_Wall.TabIndex = 3;
this.DisplayRadio_Wall.Tag = "Wall";
this.DisplayRadio_Wall.Text = "Wall";
this.DisplayRadio_Wall.CheckedChanged += new System.EventHandler(this.DisplayRadio_Wall_CheckedChanged);
//
// DisplayRadio_TableF2F
//
this.DisplayRadio_TableF2F.Location = new System.Drawing.Point(144, 24);
this.DisplayRadio_TableF2F.Name = "DisplayRadio_TableF2F";
this.DisplayRadio_TableF2F.Size = new System.Drawing.Size(80, 24);
this.DisplayRadio_TableF2F.TabIndex = 2;
this.DisplayRadio_TableF2F.Tag = "TableF2F";
this.DisplayRadio_TableF2F.Text = "Table F2F";
this.DisplayRadio_TableF2F.CheckedChanged += new System.EventHandler(this.DisplayRadio_TableF2F_CheckedChanged);
//
// DisplayRadio_TableAS
//
this.DisplayRadio_TableAS.Location = new System.Drawing.Point(16, 48);
this.DisplayRadio_TableAS.Name = "DisplayRadio_TableAS";
this.DisplayRadio_TableAS.TabIndex = 1;
this.DisplayRadio_TableAS.Tag = "TableAS";
this.DisplayRadio_TableAS.Text = "Table AS";
this.DisplayRadio_TableAS.CheckedChanged += new System.EventHandler(this.DisplayRadio_TableAS_CheckedChanged);
//
// DisplayRadio_TableS2S
//
this.DisplayRadio_TableS2S.Location = new System.Drawing.Point(16, 24);
this.DisplayRadio_TableS2S.Name = "DisplayRadio_TableS2S";
this.DisplayRadio_TableS2S.TabIndex = 0;
this.DisplayRadio_TableS2S.Tag = "TableS2S";
this.DisplayRadio_TableS2S.Text = "Table S2S";
this.DisplayRadio_TableS2S.CheckedChanged += new System.EventHandler(this.DisplayRadio_TableS2S_CheckedChanged);
//
// pictureBox1
//
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(-8, 0);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(296, 88);
this.pictureBox1.TabIndex = 14;
this.pictureBox1.TabStop = false;
//
// button2
//
this.button2.DialogResult = System.Windows.Forms.DialogResult.OK;
this.button2.Location = new System.Drawing.Point(136, 608);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(112, 24);
this.button2.TabIndex = 15;
this.button2.Text = "Exit";
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// groupBox1
//
this.groupBox1.Controls.Add(this.linkLabel2);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.linkLabel1);
this.groupBox1.Location = new System.Drawing.Point(8, 488);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(240, 112);
this.groupBox1.TabIndex = 16;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Pen Calibration";
//
// linkLabel2
//
this.linkLabel2.ActiveLinkColor = System.Drawing.Color.Blue;
this.linkLabel2.LinkColor = System.Drawing.Color.Navy;
this.linkLabel2.Location = new System.Drawing.Point(56, 80);
this.linkLabel2.Name = "linkLabel2";
this.linkLabel2.Size = new System.Drawing.Size(136, 16);
this.linkLabel2.TabIndex = 3;
this.linkLabel2.TabStop = true;
this.linkLabel2.Text = "Test the Pen Calibration";
this.linkLabel2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.linkLabel2.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel2_LinkClicked);
//
// label1
//
this.label1.Location = new System.Drawing.Point(16, 24);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(216, 23);
this.label1.TabIndex = 2;
this.label1.Text = "Data will be stored in \"calibration.pcb\" .";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// linkLabel1
//
this.linkLabel1.ActiveLinkColor = System.Drawing.Color.Blue;
this.linkLabel1.LinkColor = System.Drawing.Color.Navy;
this.linkLabel1.Location = new System.Drawing.Point(56, 56);
this.linkLabel1.Name = "linkLabel1";
this.linkLabel1.Size = new System.Drawing.Size(136, 16);
this.linkLabel1.TabIndex = 1;
this.linkLabel1.TabStop = true;
this.linkLabel1.Text = "Start Calibration Program";
this.linkLabel1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
//
// trial_groupBox
//
this.trial_groupBox.Controls.Add(this.TrialRadio_Trial2);
this.trial_groupBox.Controls.Add(this.TrialRadio_Trial1);
this.trial_groupBox.Controls.Add(this.TrialRadio_Practice2);
this.trial_groupBox.Controls.Add(this.TrialRadio_Practice1);
this.trial_groupBox.Location = new System.Drawing.Point(16, 152);
this.trial_groupBox.Name = "trial_groupBox";
this.trial_groupBox.Size = new System.Drawing.Size(232, 72);
this.trial_groupBox.TabIndex = 17;
this.trial_groupBox.TabStop = false;
this.trial_groupBox.Text = "Trial";
//
// TrialRadio_Practice2
//
this.TrialRadio_Practice2.Location = new System.Drawing.Point(16, 40);
this.TrialRadio_Practice2.Name = "TrialRadio_Practice2";
this.TrialRadio_Practice2.Size = new System.Drawing.Size(80, 24);
this.TrialRadio_Practice2.TabIndex = 2;
this.TrialRadio_Practice2.Tag = "Practice2";
this.TrialRadio_Practice2.Text = "Practice2";
this.TrialRadio_Practice2.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged);
//
// TrialRadio_Practice1
//
this.TrialRadio_Practice1.Checked = true;
this.TrialRadio_Practice1.Location = new System.Drawing.Point(16, 16);
this.TrialRadio_Practice1.Name = "TrialRadio_Practice1";
this.TrialRadio_Practice1.Size = new System.Drawing.Size(80, 24);
this.TrialRadio_Practice1.TabIndex = 0;
this.TrialRadio_Practice1.TabStop = true;
this.TrialRadio_Practice1.Tag = "Practice1";
this.TrialRadio_Practice1.Text = "Practice1";
this.TrialRadio_Practice1.CheckedChanged += new System.EventHandler(this.TrialRadio_Practice1_CheckedChanged);
//
// TrialRadio_Trial2
//
this.TrialRadio_Trial2.Location = new System.Drawing.Point(136, 36);
this.TrialRadio_Trial2.Name = "TrialRadio_Trial2";
this.TrialRadio_Trial2.Size = new System.Drawing.Size(80, 24);
this.TrialRadio_Trial2.TabIndex = 4;
this.TrialRadio_Trial2.Tag = "Trial 2";
this.TrialRadio_Trial2.Text = "Trial 2";
this.TrialRadio_Trial2.CheckedChanged += new System.EventHandler(this.TrialRadio_Trial2_CheckedChanged);
//
// TrialRadio_Trial1
//
this.TrialRadio_Trial1.Checked = true;
this.TrialRadio_Trial1.Location = new System.Drawing.Point(136, 12);
this.TrialRadio_Trial1.Name = "TrialRadio_Trial1";
this.TrialRadio_Trial1.Size = new System.Drawing.Size(80, 24);
this.TrialRadio_Trial1.TabIndex = 3;
this.TrialRadio_Trial1.TabStop = true;
this.TrialRadio_Trial1.Tag = "Trial 1";
this.TrialRadio_Trial1.Text = "Trial 1";
this.TrialRadio_Trial1.CheckedChanged += new System.EventHandler(this.TrialRadio_Trial1_CheckedChanged);
//
// StartupScreen
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(256, 638);
this.Controls.Add(this.trial_groupBox);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.button2);
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.DisplayCondGroupBox);
this.Controls.Add(this.MaterialsGroupBox);
this.Controls.Add(this.GroupNumberGroupBox);
this.Controls.Add(this.button1);
this.Controls.Add(this.StorageTypeGroupBox);
this.Cursor = System.Windows.Forms.Cursors.Hand;
this.Name = "StartupScreen";
this.Text = "NP - StartupScreen";
this.GroupNumberGroupBox.ResumeLayout(false);
this.StorageTypeGroupBox.ResumeLayout(false);
this.MaterialsGroupBox.ResumeLayout(false);
this.DisplayCondGroupBox.ResumeLayout(false);
this.groupBox1.ResumeLayout(false);
this.trial_groupBox.ResumeLayout(false);
this.ResumeLayout(false);
}
// [STAThread]
// static void Main()
// {
// while(true && exitStatus == false)
// {
// Application.Run(new StartupScreen());
// }
// }
private void StorageRadio_Fixed_CheckedChanged(object sender, System.EventArgs e) {
this.Storage = StorageType.Fixed;
}
private void StorageRadio_Mobile_CheckedChanged(object sender, System.EventArgs e) {
this.Storage = StorageType.Mobile;
}
private void DisplayRadio_TableS2S_CheckedChanged(object sender, System.EventArgs e) {
this.Display = DisplayType.TableS2S;
}
private void DisplayRadio_TableAS_CheckedChanged(object sender, System.EventArgs e) {
this.Display = DisplayType.TableAS;
}
private void DisplayRadio_TableF2F_CheckedChanged(object sender, System.EventArgs e) {
this.Display = DisplayType.TableF2F;
}
private void DisplayRadio_Wall_CheckedChanged(object sender, System.EventArgs e) {
this.Display = DisplayType.Wall;
}
private void MaterialsRadio_Practice1_CheckedChanged(object sender, System.EventArgs e) {
this.Material = MaterialType.Practice1;
}
private void MaterialsRadio_Practice2_CheckedChanged(object sender, System.EventArgs e) {
this.Material = MaterialType.Practice2;
}
private void MaterialsRadio_Friends_CheckedChanged(object sender, System.EventArgs e) {
this.Material = MaterialType.Friends;
}
private void MaterialsRadio_LOTR_CheckedChanged(object sender, System.EventArgs e) {
this.Material = MaterialType.LOTR;
}
private void button1_Click(object sender, System.EventArgs e)
{
//this.workingSpace = new Workspace(this);
this.Visible = false;
this.workingSpace.ShowDialog();
Cursor.Show();
this.Visible = true;
}
private void button2_Click(object sender, System.EventArgs e)
{
exitStatus = true;
this.Dispose();
this.Close();
Application.Exit();
}
private void linkLabel1_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
{
this.PCalibrate = new PenCalibration();
this.Visible = false;
this.PCalibrate.ShowDialog();
this.Visible = true;
}
private void linkLabel2_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
{
this.TestCalibration = new testCalibration();
this.Visible = false;
Cursor.Hide();
this.TestCalibration.ShowDialog();
Cursor.Show();
this.Visible = true;
}
private void TrialRadio_Practice1_CheckedChanged(object sender, System.EventArgs e)
{
this.trialNum = -1;
}
private void radioButton1_CheckedChanged(object sender, System.EventArgs e)
{
this.trialNum = -2;
}
private void TrialRadio_Trial1_CheckedChanged(object sender, System.EventArgs e)
{
this.trialNum = 1;
}
private void TrialRadio_Trial2_CheckedChanged(object sender, System.EventArgs e)
{
this.trialNum = 2;
}
}
}
See more files for this project here