Ejemplo n.º 1
0
 private void button2_Click(object sender, EventArgs e)
 {
     ctr.OneStepForAllPrg(ctr.GetProgramStateList());
     this.textBox2.Text = ctr.GetProgramStateList().ElementAt(0).ToString();
     if (ctr.GetProgramStateList().Count > 1)
     {
         this.textBox3.Text = ctr.GetProgramStateList().ElementAt(1).ToString();
     }
     if (ctr.GetProgramStateList().Count > 2)
     {
         this.textBox4.Text = ctr.GetProgramStateList().ElementAt(2).ToString();
     }
 }