Your SlideShare is downloading. ×
Simulador
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Simulador

208
views

Published on

Published in: Technology, Spiritual

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
208
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
11
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Public Class Form1 Dim x As Integer Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick seg1.Text = seg1.Text - 1 If seg1.Text = 0 Then Timer1.Stop() End If End Sub Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) End Sub Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Timer1.Start() Timer2.Start() Timer3.Start() Timer4.Start() Timer5.Start() Timer7.Start() End Sub
  • 2. Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Timer1.Stop() Timer2.Stop() Timer3.Stop() Timer4.Stop() Timer5.Stop() Timer7.Stop() End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Me.Close() End Sub Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick seg2.Text = seg2.Text - 1 If seg2.Text = 0 Then Timer2.Stop() End If End Sub Private Sub Timer3_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer3.Tick seg3.Text = seg3.Text - 1 If seg3.Text = 0 Then Timer3.Stop() End If End Sub Private Sub Timer5_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer5.Tick seg5.Text = seg5.Text - 1 If seg5.Text = 0 Then Timer5.Stop() End If End Sub Private Sub Timer4_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer4.Tick seg4.Text = seg4.Text - 1 If seg4.Text = 0 Then Timer4.Stop() End If End Sub Private Sub Timer7_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer7.Tick tiempo.Text = tiempo.Text + 1
  • 3. rosado.Visible = True PictureBox9.Visible = False morado.Visible = True PictureBox13.Visible = False celeste.Visible = True PictureBox16.Visible = False verde.Visible = True PictureBox14.Visible = False amarillo.Visible = True PictureBox10.Visible = False If tiempo.Text = "10" Then Timer5.Start() rosado.Visible = False rosado.Visible = True PictureBox22.Visible = False seg5.Text = "10" End If If tiempo.Text = "20" Then Timer5.Start() rosado.Visible = False rosado.Visible = True PictureBox25.Visible = False seg5.Text = "10" End If If tiempo.Text = "30" Then Timer5.Start() seg5.Text = "17" amarillo4.Visible = True PictureBox18.Visible = False rosado.Visible = False End If If tiempo.Text = "47" Then amarillo4.Visible = False seg5.Text = "free" Timer5.Stop() End If
  • 4. If tiempo.Text = "5" Then Timer4.Start() seg4.Text = "5" morado.Visible = False morado.Visible = True PictureBox15.Visible = False End If If tiempo.Text = "10" Then Timer4.Start() seg4.Text = "5" morado.Visible = False morado.Visible = True PictureBox17.Visible = False End If If tiempo.Text = "15" Then Timer4.Start() seg4.Text = "5" morado.Visible = False morado.Visible = True PictureBox23.Visible = False End If If tiempo.Text = "20" Then Timer4.Start() seg4.Text = "5" morado.Visible = True End If If tiempo.Text = "25" Then Timer4.Start() seg4.Text = "17" morado.Visible = False amarillo3.Visible = True PictureBox21.Visible = False End If If tiempo.Text = "42" Then amarillo3.Visible = False seg4.Text = "free" Timer4.Stop() End If If tiempo.Text = "7" Then PictureBox19.Visible = False Timer3.Start() seg3.Text = "7" celeste.Visible = False celeste.Visible = True End If If tiempo.Text = "14" Then PictureBox20.Visible = False
  • 5. Timer3.Start() seg3.Text = "7" celeste.Visible = False celeste.Visible = True End If If tiempo.Text = "21" Then PictureBox27.Visible = False celeste.Visible = False Timer3.Start() seg3.Text = "17" amarillo2.Visible = True End If If tiempo.Text = "38" Then PictureBox28.Visible = False celeste.Visible = False Timer3.Start() seg3.Text = "17" amarillo2.Visible = True End If If tiempo.Text = "55" Then amarillo2.Visible = False seg3.Text = "free" Timer3.Stop() End If If tiempo.Text = "10" Then Timer2.Start() verde.Visible = False seg2.Text = "10" verde.Visible = True End If If tiempo.Text = "20" Then Timer2.Start() seg2.Text = "10" verde.Visible = False verde.Visible = True PictureBox24.Visible = False End If If tiempo.Text = "30" Then Timer2.Start() seg2.Text = "17" verde.Visible = False PictureBox26.Visible = False amarillo1.Visible = True End If If tiempo.Text = "47" Then amarillo1.Visible = False
  • 6. seg2.Text = "free" Timer2.Stop() End If If tiempo.Text = "17" Then PictureBox10.Visible = False Timer1.Start() seg1.Text = "17" amarillo.Visible = True End If If tiempo.Text = "34" Then PictureBox11.Visible = False Timer1.Start() seg1.Text = "17" amarillo.Visible = True PictureBox12.Visible = False End If If tiempo.Text = "51" Then amarillo.Visible = False seg1.Text = "free" Timer1.Stop() End If If tiempo.Text = "55" Then Timer7.Stop() MsgBox("El Simulador a terminado") End If End Sub End Class