-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHelping.vb
32 lines (29 loc) · 1.23 KB
/
Helping.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Public Class Helping
Dim optio As Integer
Private Sub Helping_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
My.Computer.Audio.Play(My.Resources.Helping, AudioPlayMode.WaitToComplete)
Button2.Enabled = False
My.Computer.Audio.Play(My.Resources.BaristaLady, AudioPlayMode.BackgroundLoop)
End Sub
Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Select Case Int((5 * Rnd()) + 1)
Case 1
TextBox1.Text = "Try Walter"
Case 2
TextBox1.Text = "Malk is Good"
Case 3
TextBox1.Text = "Cophie"
Case 4
TextBox1.Text = "YumYum OrangeL"
Case 5
TextBox1.Text = "Beverage Nice"
End Select
My.Computer.Audio.Play(My.Resources.Helping, AudioPlayMode.WaitToComplete)
Button2.Enabled = True
My.Computer.Audio.Play(My.Resources.BaristaLady, AudioPlayMode.BackgroundLoop)
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
DispensingPleaseWait.ShowDialog()
Me.Close()
End Sub
End Class