-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathfPTO.vb
38 lines (30 loc) · 1.67 KB
/
fPTO.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
33
34
35
36
37
38
Public Class fPTO
Private Sub fPTO_Leave(sender As Object, e As EventArgs) Handles Me.Leave
If My.Settings.SettingsSound = True then My.Computer.Audio.Play(My.Resources.closewindow, AudioPlayMode.Background)
End Sub
Private Sub fPTO_Load(sender As Object, e As EventArgs) Handles MyBase.Load
If My.Settings.SettingsSound = True then My.Computer.Audio.Play(My.Resources.sound_event, AudioPlayMode.Background)
End Sub
Private Sub SlCbtn1_Click(sender As Object, e As EventArgs) Handles Button4.Click
If My.Settings.SettingsSound = True then My.Computer.Audio.Play(My.Resources.menuselect, AudioPlayMode.Background)
FMain.EmployeeData.Items(ListBox1.Items(0)) = GetEmployee(FMain.EmployeeData.Items(ListBox1.Items(0)), "PTO", "Y")
ListBox1.Items.RemoveAt(0)
If ListBox1.Items.Count > 0 Then
Label1.Text = GetEmployee(FMain.EmployeeData.Items(ListBox1.Items(0)), "Name") & " would like to request some time off."
Else
Me.Hide()
End If
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
If My.Settings.SettingsSound = True then My.Computer.Audio.Play(My.Resources.closewindow, AudioPlayMode.Background)
ListBox1.Items.RemoveAt(0)
If ListBox1.Items.Count > 0 Then
Label1.Text = GetEmployee(FMain.EmployeeData.Items(ListBox1.Items(0)), "Name") & " would like to request some time off."
Else
Me.Hide()
End If
End Sub
Private Sub SlcClose1_Click(sender As Object, e As EventArgs) Handles SlcClose1.Click
Me.Hide()
End Sub
End Class