Public Class Tabel_Sewa
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.ListBox1.Items.Add("harga sewa peralatan" & vbTab & "1/2 Hari (H)" & vbTab & "Seharian(F)" & vbNewLine)
Me.ListBox1.Items.Add("1. Perbersih permadani" & vbTab & "$16.00" & vbTab & vbTab & "$24.00" & vbNewLine)
Me.ListBox1.Items.Add("2. Mesin pemotong rumput" & vbTab & "$12.00" & vbTab & vbTab & "$18.00" & vbNewLine)
Me.ListBox1.Items.Add("3. Penyemprot Cat" & vbTab & vbTab & "$20.00" & vbTab & vbTab & "$30.00" & vbNewLine)
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Me.ListBox2.Items.Clear()
If Me.TextBox1.Text = 1 And Me.ComboBox1.SelectedIndex = 0 Then
Me.ListBox2.Items.Add("Pembersih permadani" & vbTab & "$16.00" & vbTab & "(sewa 1/2 hari)")
Me.ListBox2.Items.Add("deposit" & vbTab & vbTab & vbTab & "$30.00")
Me.ListBox2.Items.Add("================================")
Me.ListBox2.Items.Add("TOTAL" & vbTab & vbTab & vbTab & "$14.00")
End If
If Me.TextBox1.Text = 1 And Me.ComboBox1.SelectedIndex = 1 Then
Me.ListBox2.Items.Add("Pembersih permadani" & vbTab & "$24.00" & vbTab & "(sewa seharian)")
Me.ListBox2.Items.Add("deposit" & vbTab & vbTab & vbTab & "$30.00")
Me.ListBox2.Items.Add("================================")
Me.ListBox2.Items.Add("TOTAL" & vbTab & vbTab & vbTab & "$6.00")
End If
If Me.TextBox1.Text = 2 And Me.ComboBox1.SelectedIndex = 0 Then
Me.ListBox2.Items.Add("Mesin Pemotong Rumput" & vbTab & "$12.00" & vbTab & "(sewa 1/2 hari)")
Me.ListBox2.Items.Add("deposit" & vbTab & vbTab & vbTab & "$30.00")
Me.ListBox2.Items.Add("================================")
Me.ListBox2.Items.Add("TOTAL" & vbTab & vbTab & vbTab & "$18.00")
End If
If Me.TextBox1.Text = 2 And Me.ComboBox1.SelectedIndex = 1 Then
Me.ListBox2.Items.Add("Mesin Pemotong Rumput" & vbTab & "$18.00" & vbTab & "(sewa seharian)")
Me.ListBox2.Items.Add("deposit" & vbTab & vbTab & vbTab & "$30.00")
Me.ListBox2.Items.Add("================================")
Me.ListBox2.Items.Add("TOTAL" & vbTab & vbTab & vbTab & "$12.00")
End If
If Me.TextBox1.Text = 3 And Me.ComboBox1.SelectedIndex = 0 Then
Me.ListBox2.Items.Add("Penyemprot Cat" & vbTab & "$20.00" & vbTab & "(sewa 1/2 hari)")
Me.ListBox2.Items.Add("deposit" & vbTab & vbTab & vbTab & "$30.00")
Me.ListBox2.Items.Add("================================")
Me.ListBox2.Items.Add("TOTAL" & vbTab & vbTab & vbTab & "$18.00")
End If
If Me.TextBox1.Text = 3 And Me.ComboBox1.SelectedIndex = 1 Then
Me.ListBox2.Items.Add("Penyemprot Cat" & vbTab & "$30.00" & vbTab & "(sewa seharian)")
Me.ListBox2.Items.Add("deposit" & vbTab & vbTab & vbTab & "$30.00")
Me.ListBox2.Items.Add("================================")
Me.ListBox2.Items.Add("TOTAL" & vbTab & vbTab & vbTab & "$0.00")
End If
End Sub
End Class
Tidak ada komentar:
Posting Komentar
Berkomentarlah yang baik..