Вы находитесь на странице: 1из 1

Public Class Form1

Dim waiting As Decimal = 3.5


Dim forwarding As Decimal = 3.5
Dim ID As Decimal = 3.5
Dim cost As Decimal = 25
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button1.Click
If CheckBox1.Checked = False And CheckBox2.Checked = False And CheckBox3.Checked =
False Then
Label2.Text = cost
ElseIf CheckBox1.Checked = True And CheckBox2.Checked = False And CheckBox3.Checked
= False Then
Label2.Text = cost + waiting
ElseIf CheckBox1.Checked = True And CheckBox2.Checked = True And CheckBox3.Checked
= False Then
Label2.Text = cost + waiting + forwarding
ElseIf CheckBox1.Checked = True And CheckBox2.Checked = True And CheckBox3.Checked
= True Then
Label2.Text = cost + waiting + forwarding + ID
ElseIf CheckBox1.Checked = False And CheckBox2.Checked = True And CheckBox3.Checked
= False Then
Label2.Text = cost + forwarding
ElseIf CheckBox1.Checked = False And CheckBox2.Checked = True And CheckBox3.Checked
= True Then
Label2.Text = cost + forwarding + ID
ElseIf CheckBox1.Checked = False And CheckBox2.Checked = False And CheckBox3.Checked
= True Then
Label2.Text = cost + ID
ElseIf CheckBox1.Checked = True And CheckBox2.Checked = False And CheckBox3.Checked
= True Then
Label2.Text = cost + waiting + ID
End If
End Sub
End Class

Вам также может понравиться