9-serial games implemented using Asp.net (VB)

Source: Internet
Author: User

Public class chinaring1
Inherits system. Web. UI. Page

# Region "code generated by web forms designer"

'The call is required by the web form designer.
<System. Diagnostics. debuggerstepthrough ()>

Private sub initializecomponent ()

End sub
Protected withevents chinaringckbox1 as system. Web. UI. webcontrols. checkbox
Protected withevents chinaringckbox2 as system. Web. UI. webcontrols. checkbox
Protected withevents chinaringckbox3 as system. Web. UI. webcontrols. checkbox
Protected withevents chinaringckbox4 as system. Web. UI. webcontrols. checkbox
Protected withevents chinaringckbox5 as system. Web. UI. webcontrols. checkbox
Protected withevents chinaringckbox6 as system. Web. UI. webcontrols. checkbox
Protected withevents chinaringckbox7 as system. Web. UI. webcontrols. checkbox
Protected withevents chinaringckbox8 as system. Web. UI. webcontrols. checkbox
Protected withevents chinaringckbox9 as system. Web. UI. webcontrols. checkbox
Protected withevents chinaringlb1 as system. Web. UI. webcontrols. Label
Protected chinaringckbox (8) as system. Web. UI. webcontrols. checkbox

'Note: The following placeholder declaration is required by the web form designer.
'Do not delete or move it.
Private designerplaceholderdeclaration as system. Object

Private sub page_init (byval sender as system. Object, byval e as system. eventargs) handles mybase. init
'Codegen: This method call is required by the web forms designer
'Do not use the code editor to modify it.
Initializecomponent ()
End sub

# End Region

Private sub page_load (byval sender as system. Object, byval e as system. eventargs) handles mybase. Load
Chinaringckbox (0) = chinaringckbox1
Chinaringckbox (1) = chinaringckbox2
Chinaringckbox (2) = chinaringckbox3
Chinaringckbox (3) = chinaringckbox4
Chinaringckbox (4) = chinaringckbox5
Chinaringckbox (5) = chinaringckbox6
Chinaringckbox (6) = chinaringckbox7
Chinaringckbox (7) = chinaringckbox8
Chinaringckbox (8) = chinaringckbox9
End sub

Private sub chinaringckbox1_checkedchanged (byval sender as system. Object, byval e as system. eventargs) handles chinaringckbox1.checkedchanged
Chinaringckbox_checkedchanged (1, sender, E)
End sub

Private sub chinaringckbox2_checkedchanged (byval sender as system. Object, byval e as system. eventargs) handles chinaringckbox2.checkedchanged
Chinaringckbox_checkedchanged (2, sender, E)
End sub

Private sub chinaringckbox3_checkedchanged (byval sender as system. Object, byval e as system. eventargs) handles chinaringckbox3.checkedchanged
Chinaringckbox_checkedchanged (3, sender, E)
End sub

Private sub chinaringckbox4_checkedchanged (byval sender as system. Object, byval e as system. eventargs) handles chinaringckbox4.checkedchanged
Chinaringckbox_checkedchanged (4, sender, E)
End sub

Private sub chinaringckbox5_checkedchanged (byval sender as system. Object, byval e as system. eventargs) handles chinaringckbox5.checkedchanged
Chinaringckbox_checkedchanged (5, sender, E)
End sub

Private sub chinaringckbox6_checkedchanged (byval sender as system. Object, byval e as system. eventargs) handles chinaringckbox6.checkedchanged
Chinaringckbox_checkedchanged (6, sender, E)
End sub

Private sub chinaringckbox7_checkedchanged (byval sender as system. Object, byval e as system. eventargs) handles chinaringckbox7.checkedchanged
Chinaringckbox_checkedchanged (7, sender, E)
End sub

Private sub chinaringckbox8_checkedchanged (byval sender as system. Object, byval e as system. eventargs) handles chinaringckbox8.checkedchanged
Chinaringckbox_checkedchanged (8, sender, E)
End sub

Private sub chinaringckbox9_checkedchanged (byval sender as system. Object, byval e as system. eventargs) handles chinaringckbox9.checkedchanged
Chinaringckbox_checkedchanged (9, sender, E)
End sub

Private sub chinaringckbox_checkedchanged (byval index as integer, byval sender as system. Object, byval e as system. eventargs)
Dim I as integer
I = 0
Dim chinaringck as Boolean = false
If Index = 1 then
Chinaringck = true
Else
If chinaringckbox (index-2). Checked then
Chinaringck = true
End if
Do while I <index-2
If chinaringckbox (I). Checked then
Chinaringck = false
End if
I = I + 1
Loop
End if
If not chinaringck then
Chinaringckbox (index-1). Checked = Not chinaringckbox (index-1). Checked
'You can add a prompt here. The condition prompt cannot be set in or out of the ring.
End if
End sub

End Class

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.