private void button1_Click(object sender, EventArgs e) { hideCtrls(); telaSpikes = new SpikesForm(); this.Hide(); telaSpikes.Show(); }
// Constructor to pass the previous form as a parameter to use its thread for serial communication public TestProtocol(SpikesForm _telaSpikes) { InitializeComponent(); telaSpikes = _telaSpikes; // Generate the 15 texture sequence generateSequence(); testStep = test_step.STOPPED; Console.WriteLine(telaSpikes.th.IsAlive.ToString()); telaSpikes.testProtocolOn = true; }
public TestProtocol(SpikesForm _telaSpikes) { InitializeComponent(); telaSpikes = _telaSpikes; generateSequence(); testStep = test_step.STOPPED; Console.WriteLine(telaSpikes.th.IsAlive.ToString()); telaSpikes.testProtocolOn = true; initThreadProgBar(); increment_progBar.Start(); increment_progBar.Suspend(); }