Public Class Page_2
Private GCS_Value As Integer = 0
Private Sub Page_2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
lbl_Total.Text = CStr(GCS_Value)
End Sub
Private Sub cbEyes4_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles cbEyes4.MouseClick
cbEyes1.Checked = False
cbEyes2.Checked = False
cbEyes3.Checked = False
cbEyes4.Checked = True
update_GCSTotal()
End Sub
Private Sub cbEyes3_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles cbEyes3.MouseClick
cbEyes1.Checked = False
cbEyes2.Checked = False
cbEyes3.Checked = True
cbEyes4.Checked = False
update_GCSTotal()
End Sub
Private Sub cbEyes2_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles cbEyes2.MouseClick
cbEyes1.Checked = False
cbEyes2.Checked = True
cbEyes3.Checked = False
cbEyes4.Checked = False
update_GCSTotal()
End Sub
Private Sub cbEyes1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles cbEyes1.MouseClick
cbEyes1.Checked = True
cbEyes2.Checked = False
cbEyes3.Checked = False
cbEyes4.Checked = False
update_GCSTotal()
End Sub
Private Sub cbVerbal5_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles cbVerbal5.MouseClick
cbVerbal1.Checked = False
cbVerbal2.Checked = False
cbVerbal3.Checked = False
cbVerbal4.Checked = False
cbVerbal5.Checked = True
update_GCSTotal()
End Sub
Private Sub cbVerbal4_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles cbVerbal4.MouseClick
cbVerbal1.Checked = False
cbVerbal2.Checked = False
cbVerbal3.Checked = False
cbVerbal4.Checked = True
cbVerbal5.Checked = False
update_GCSTotal()
End Sub
Private Sub cbVerbal3_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles cbVerbal3.MouseClick
cbVerbal1.Checked = False
cbVerbal2.Checked = False
cbVerbal3.Checked = True
cbVerbal4.Checked = False
cbVerbal5.Checked = False
update_GCSTotal()
End Sub
Private Sub cbVerbal2_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles cbVerbal2.MouseClick
cbVerbal1.Checked = False
cbVerbal2.Checked = True
cbVerbal3.Checked = False
cbVerbal4.Checked = False
cbVerbal5.Checked = False
update_GCSTotal()
End Sub
Private Sub cbVerbal1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles cbVerbal1.MouseClick
cbVerbal1.Checked = True
cbVerbal2.Checked = False
cbVerbal3.Checked = False
cbVerbal4.Checked = False
cbVerbal5.Checked = False
update_GCSTotal()
End Sub
Private Sub cbMotor6_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles cbMotor6.MouseClick
cbMotor1.Checked = False
cbMotor2.Checked = False
cbMotor3.Checked = False
cbMotor4.Checked = False
cbMotor5.Checked = False
cbMotor6.Checked = True
update_GCSTotal()
End Sub
Private Sub cbMotor5_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles cbMotor5.MouseClick
cbMotor1.Checked = False
cbMotor2.Checked = False
cbMotor3.Checked = False
cbMotor4.Checked = False
cbMotor5.Checked = True
cbMotor6.Checked = False
update_GCSTotal()
End Sub
Private Sub cbMotor4_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles cbMotor4.MouseClick
cbMotor1.Checked = False
cbMotor2.Checked = False
cbMotor3.Checked = False
cbMotor4.Checked = True
cbMotor5.Checked = False
cbMotor6.Checked = False
update_GCSTotal()
End Sub
Private Sub cbMotor3_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles cbMotor3.MouseClick
cbMotor1.Checked = False
cbMotor2.Checked = False
cbMotor3.Checked = True
cbMotor4.Checked = False
cbMotor5.Checked = False
cbMotor6.Checked = False
update_GCSTotal()
End Sub
Private Sub cbMotor2_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles cbMotor2.MouseClick
cbMotor1.Checked = False
cbMotor2.Checked = True
cbMotor3.Checked = False
cbMotor4.Checked = False
cbMotor5.Checked = False
cbMotor6.Checked = False
update_GCSTotal()
End Sub
Private Sub cbMotor1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles cbMotor1.MouseClick
cbMotor1.Checked = True
cbMotor2.Checked = False
cbMotor3.Checked = False
cbMotor4.Checked = False
cbMotor5.Checked = False
cbMotor6.Checked = False
update_GCSTotal()
End Sub
Sub update_GCSTotal()
GCS_Value = 0
If Me.cbEyes1.Checked Then
GCS_Value += CInt(Me.cbEyes1.Text)
End If
If Me.cbEyes2.Checked Then
GCS_Value += CInt(Me.cbEyes2.Text)
End If
If Me.cbEyes3.Checked Then
GCS_Value += CInt(Me.cbEyes3.Text)
End If
If Me.cbEyes4.Checked Then
GCS_Value += CInt(Me.cbEyes4.Text)
End If
If Me.cbVerbal1.Checked Then
GCS_Value += CInt(Me.cbVerbal1.Text)
End If
If Me.cbVerbal2.Checked Then
GCS_Value += CInt(Me.cbVerbal2.Text)
End If
If Me.cbVerbal3.Checked Then
GCS_Value += CInt(Me.cbVerbal3.Text)
End If
If Me.cbVerbal4.Checked Then
GCS_Value += CInt(Me.cbVerbal4.Text)
End If
If Me.cbVerbal5.Checked Then
GCS_Value += CInt(Me.cbVerbal5.Text)
End If
If Me.cbMotor1.Checked Then
GCS_Value += CInt(Me.cbMotor1.Text)
End If
If Me.cbMotor2.Checked Then
GCS_Value += CInt(Me.cbMotor2.Text)
End If
If Me.cbMotor3.Checked Then
GCS_Value += CInt(Me.cbMotor3.Text)
End If
If Me.cbMotor4.Checked Then
GCS_Value += CInt(Me.cbMotor4.Text)
End If
If Me.cbMotor5.Checked Then
GCS_Value += CInt(Me.cbMotor5.Text)
End If
If Me.cbMotor6.Checked Then
GCS_Value += CInt(Me.cbMotor6.Text)
End If
lbl_Total.Text = CStr(GCS_Value)
End Sub
End Class