-
Notifications
You must be signed in to change notification settings - Fork 0
/
vote.xaml.vb
1190 lines (946 loc) · 38.9 KB
/
vote.xaml.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Public Class vote
Dim w(50) As Integer
Dim c As Integer
Private Sub cand_Laded(ByVal sender As System.Object, ByVal e As EventArgs) Handles MyBase.Closing
Dim rootWindow As MainWindow = TryCast(Application.Current.MainWindow, MainWindow)
rootWindow.WindowState = Windows.WindowState.Normal
My.Settings.Save()
End Sub
Private Sub vote_Loed(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles MyBase.Loaded
vote.grp.Visibility = Windows.Visibility.Hidden
vote.img.Visibility = Windows.Visibility.Hidden
vote.submit.Visibility = Windows.Visibility.Hidden
Me.Activate()
'Assigning Variables
w(1) = My.Settings.c1
w(2) = My.Settings.c2
w(3) = My.Settings.c3
w(4) = My.Settings.c4
w(5) = My.Settings.c5
w(6) = My.Settings.c6
w(7) = My.Settings.c7
w(8) = My.Settings.c8
w(9) = My.Settings.c9
w(10) = My.Settings.c10
w(11) = My.Settings.c11
w(12) = My.Settings.c12
w(13) = My.Settings.c13
w(14) = My.Settings.c14
w(15) = My.Settings.c15
w(16) = My.Settings.c16
w(17) = My.Settings.c17
w(18) = My.Settings.c18
w(19) = My.Settings.c19
w(20) = My.Settings.c20
w(21) = My.Settings.c1
w(22) = My.Settings.c22
w(23) = My.Settings.c23
w(24) = My.Settings.c24
w(25) = My.Settings.c25
w(26) = My.Settings.c26
w(27) = My.Settings.c27
w(28) = My.Settings.c28
w(29) = My.Settings.c29
w(30) = My.Settings.c30
w(31) = My.Settings.c31
w(32) = My.Settings.c32
w(33) = My.Settings.c33
w(34) = My.Settings.c34
w(35) = My.Settings.c35
w(36) = My.Settings.c36
w(37) = My.Settings.c37
w(38) = My.Settings.c38
w(39) = My.Settings.c39
w(40) = My.Settings.c40
w(41) = My.Settings.c41
w(42) = My.Settings.c42
w(43) = My.Settings.c43
w(44) = My.Settings.c44
w(45) = My.Settings.c45
q1.Content = My.Settings.q1
q2.Content = My.Settings.q2
q3.Content = My.Settings.q3
q4.Content = My.Settings.q4
q5.Content = My.Settings.q5
q6.Content = My.Settings.q6
q7.Content = My.Settings.q7
q8.Content = My.Settings.q8
q9.Content = My.Settings.q9
q10.Content = My.Settings.q10
q11.Content = My.Settings.q11
q12.Content = My.Settings.q12
q13.Content = My.Settings.q13
q14.Content = My.Settings.q14
q15.Content = My.Settings.q15
q16.Content = My.Settings.q16
q17.Content = My.Settings.q17
q18.Content = My.Settings.q18
q19.Content = My.Settings.q19
q20.Content = My.Settings.q20
q21.Content = My.Settings.q21
q22.Content = My.Settings.q22
q23.Content = My.Settings.q23
q24.Content = My.Settings.q24
q25.Content = My.Settings.q25
q26.Content = My.Settings.q26
q27.Content = My.Settings.q27
q28.Content = My.Settings.q28
q29.Content = My.Settings.q29
q30.Content = My.Settings.q30
q31.Content = My.Settings.q31
q32.Content = My.Settings.q32
q33.Content = My.Settings.q33
q34.Content = My.Settings.q34
q35.Content = My.Settings.q35
q36.Content = My.Settings.q36
q37.Content = My.Settings.q37
q38.Content = My.Settings.q38
q39.Content = My.Settings.q39
q40.Content = My.Settings.q40
q41.Content = My.Settings.q41
q42.Content = My.Settings.q42
q43.Content = My.Settings.q43
q44.Content = My.Settings.q44
q45.Content = My.Settings.q45
If q1.Content = Nothing Then
q1.Visibility = Windows.Visibility.Hidden
End If
If q2.Content = Nothing Then
q2.Visibility = Windows.Visibility.Hidden
End If
If q3.Content = Nothing Then
q3.Visibility = Windows.Visibility.Hidden
End If
If q4.Content = Nothing Then
q4.Visibility = Windows.Visibility.Hidden
End If
If q5.Content = Nothing Then
q5.Visibility = Windows.Visibility.Hidden
End If
If q6.Content = Nothing Then
q6.Visibility = Windows.Visibility.Hidden
End If
If q7.Content = Nothing Then
q7.Visibility = Windows.Visibility.Hidden
End If
If q8.Content = Nothing Then
q8.Visibility = Windows.Visibility.Hidden
End If
If q9.Content = Nothing Then
q9.Visibility = Windows.Visibility.Hidden
End If
If q10.Content = Nothing Then
q10.Visibility = Windows.Visibility.Hidden
End If
If q11.Content = Nothing Then
q11.Visibility = Windows.Visibility.Hidden
End If
If q12.Content = Nothing Then
q12.Visibility = Windows.Visibility.Hidden
End If
If q13.Content = Nothing Then
q13.Visibility = Windows.Visibility.Hidden
End If
If q14.Content = Nothing Then
q14.Visibility = Windows.Visibility.Hidden
End If
If q15.Content = Nothing Then
q15.Visibility = Windows.Visibility.Hidden
End If
If q16.Content = Nothing Then
q16.Visibility = Windows.Visibility.Hidden
End If
If q17.Content = Nothing Then
q17.Visibility = Windows.Visibility.Hidden
End If
If q18.Content = Nothing Then
q18.Visibility = Windows.Visibility.Hidden
End If
If q19.Content = Nothing Then
q19.Visibility = Windows.Visibility.Hidden
End If
If q20.Content = Nothing Then
q20.Visibility = Windows.Visibility.Hidden
End If
If q21.Content = Nothing Then
q21.Visibility = Windows.Visibility.Hidden
End If
If q22.Content = Nothing Then
q22.Visibility = Windows.Visibility.Hidden
End If
If q23.Content = Nothing Then
q23.Visibility = Windows.Visibility.Hidden
End If
If q24.Content = Nothing Then
q24.Visibility = Windows.Visibility.Hidden
End If
If q25.Content = Nothing Then
q25.Visibility = Windows.Visibility.Hidden
End If
If q26.Content = Nothing Then
q26.Visibility = Windows.Visibility.Hidden
End If
If q27.Content = Nothing Then
q27.Visibility = Windows.Visibility.Hidden
End If
If q28.Content = Nothing Then
q28.Visibility = Windows.Visibility.Hidden
End If
If q29.Content = Nothing Then
q29.Visibility = Windows.Visibility.Hidden
End If
If q30.Content = Nothing Then
q30.Visibility = Windows.Visibility.Hidden
End If
If q31.Content = Nothing Then
q31.Visibility = Windows.Visibility.Hidden
End If
If q32.Content = Nothing Then
q32.Visibility = Windows.Visibility.Hidden
End If
If q33.Content = Nothing Then
q33.Visibility = Windows.Visibility.Hidden
End If
If q34.Content = Nothing Then
q34.Visibility = Windows.Visibility.Hidden
End If
If q35.Content = Nothing Then
q35.Visibility = Windows.Visibility.Hidden
End If
If q36.Content = Nothing Then
q36.Visibility = Windows.Visibility.Hidden
End If
If q37.Content = Nothing Then
q37.Visibility = Windows.Visibility.Hidden
End If
If q38.Content = Nothing Then
q38.Visibility = Windows.Visibility.Hidden
End If
If q39.Content = Nothing Then
q39.Visibility = Windows.Visibility.Hidden
End If
If q40.Content = Nothing Then
q40.Visibility = Windows.Visibility.Hidden
End If
If q41.Content = Nothing Then
q41.Visibility = Windows.Visibility.Hidden
End If
If q42.Content = Nothing Then
q42.Visibility = Windows.Visibility.Hidden
End If
If q43.Content = Nothing Then
q43.Visibility = Windows.Visibility.Hidden
End If
If q44.Content = Nothing Then
q44.Visibility = Windows.Visibility.Hidden
End If
If q45.Content = Nothing Then
q45.Visibility = Windows.Visibility.Hidden
End If
vote.grp.Visibility = Windows.Visibility.Visible
vote.img.Visibility = Windows.Visibility.Visible
vote.submit.Visibility = Windows.Visibility.Visible
count.Text = My.Settings.count
c = My.Settings.count
End Sub
Private Sub submit_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles submit.Click
'Voting begins here.......
If q1.IsChecked = True Then
w(1) = w(1) + 1 'Vote increments here
My.Settings.c1 = w(1)
q1.IsChecked = False
c = c + 1
ElseIf q2.IsChecked = True Then
w(2) = w(2) + 1
My.Settings.c2 = w(2)
q2.IsChecked = False
c = c + 1
ElseIf q3.IsChecked = True Then
w(3) = w(3) + 1
My.Settings.c3 = w(3)
q3.IsChecked = False
c = c + 1
ElseIf q4.IsChecked = True Then
w(4) = w(4) + 1
My.Settings.c4 = w(4)
q4.IsChecked = False
c = c + 1
ElseIf q5.IsChecked = True Then
w(5) = w(5) + 1
My.Settings.c5 = w(5)
q5.IsChecked = False
c = c + 1
ElseIf q6.IsChecked = True Then
w(6) = w(6) + 1
My.Settings.c6 = w(6)
q6.IsChecked = False
c = c + 1
ElseIf q7.IsChecked = True Then
w(7) = w(7) + 1
My.Settings.c7 = w(7)
q7.IsChecked = False
c = c + 1
ElseIf q8.IsChecked = True Then
w(8) = w(8) + 1
My.Settings.c8 = w(8)
q8.IsChecked = False
c = c + 1
ElseIf q9.IsChecked = True Then
w(9) = w(9) + 1
My.Settings.c9 = w(9)
q9.IsChecked = False
c = c + 1
ElseIf q10.IsChecked = True Then
w(10) = w(10) + 1
My.Settings.c10 = w(10)
q10.IsChecked = False
c = c + 1
ElseIf q11.IsChecked = True Then
w(11) = w(11) + 1
My.Settings.c11 = w(11)
q11.IsChecked = False
c = c + 1
ElseIf q12.IsChecked = True Then
w(12) = w(12) + 1
My.Settings.c12 = w(12)
q12.IsChecked = False
c = c + 1
ElseIf q13.IsChecked = True Then
w(13) = w(13) + 1
My.Settings.c13 = w(13)
q13.IsChecked = False
c = c + 1
ElseIf q14.IsChecked = True Then
w(14) = w(14) + 1
My.Settings.c14 = w(14)
q14.IsChecked = False
c = c + 1
ElseIf q15.IsChecked = True Then
w(15) = w(15) + 1
My.Settings.c15 = w(15)
q15.IsChecked = False
c = c + 1
ElseIf q16.IsChecked = True Then
w(16) = w(16) + 1
My.Settings.c16 = w(16)
q16.IsChecked = False
c = c + 1
ElseIf q17.IsChecked = True Then
w(17) = w(17) + 1
My.Settings.c17 = w(17)
q17.IsChecked = False
c = c + 1
ElseIf q18.IsChecked = True Then
w(18) = w(18) + 1
My.Settings.c18 = w(18)
q18.IsChecked = False
c = c + 1
ElseIf q19.IsChecked = True Then
w(19) = w(19) + 1
My.Settings.c19 = w(19)
q19.IsChecked = False
c = c + 1
ElseIf q20.IsChecked = True Then
w(20) = w(20) + 1
My.Settings.c20 = w(20)
q20.IsChecked = False
c = c + 1
ElseIf q21.IsChecked = True Then
w(21) = w(21) + 1
My.Settings.c21 = w(21)
q21.IsChecked = False
c = c + 1
ElseIf q22.IsChecked = True Then
w(22) = w(22) + 1
My.Settings.c22 = w(22)
q22.IsChecked = False
c = c + 1
ElseIf q23.IsChecked = True Then
w(23) = w(23) + 1
My.Settings.c23 = w(23)
q23.IsChecked = False
c = c + 1
ElseIf q24.IsChecked = True Then
w(24) = w(24) + 1
My.Settings.c24 = w(24)
q24.IsChecked = False
c = c + 1
ElseIf q25.IsChecked = True Then
w(25) = w(25) + 1
My.Settings.c25 = w(25)
q25.IsChecked = False
c = c + 1
ElseIf q26.IsChecked = True Then
w(26) = w(26) + 1
My.Settings.c26 = w(26)
q26.IsChecked = False
c = c + 1
ElseIf q27.IsChecked = True Then
w(27) = w(27) + 1
My.Settings.c27 = w(27)
q27.IsChecked = False
c = c + 1
ElseIf q28.IsChecked = True Then
w(28) = w(28) + 1
My.Settings.c28 = w(28)
q28.IsChecked = False
c = c + 1
ElseIf q29.IsChecked = True Then
w(29) = w(29) + 1
My.Settings.c29 = w(29)
q29.IsChecked = False
c = c + 1
ElseIf q30.IsChecked = True Then
w(30) = w(30) + 1
My.Settings.c30 = w(30)
q30.IsChecked = False
c = c + 1
ElseIf q31.IsChecked = True Then
w(31) = w(31) + 1
My.Settings.c31 = w(31)
q31.IsChecked = False
c = c + 1
ElseIf q32.IsChecked = True Then
w(32) = w(32) + 1
My.Settings.c32 = w(32)
q32.IsChecked = False
c = c + 1
ElseIf q33.IsChecked = True Then
w(33) = w(33) + 1
My.Settings.c33 = w(33)
q33.IsChecked = False
c = c + 1
ElseIf q34.IsChecked = True Then
w(34) = w(34) + 1
My.Settings.c34 = w(34)
q34.IsChecked = False
c = c + 1
ElseIf q35.IsChecked = True Then
w(35) = w(35) + 1
My.Settings.c35 = w(35)
q35.IsChecked = False
c = c + 1
ElseIf q36.IsChecked = True Then
w(36) = w(36) + 1
My.Settings.c36 = w(36)
q36.IsChecked = False
c = c + 1
ElseIf q37.IsChecked = True Then
w(37) = w(37) + 1
My.Settings.c37 = (37)
q37.IsChecked = False
c = c + 1
ElseIf q38.IsChecked = True Then
w(38) = w(38) + 1
My.Settings.c38 = w(38)
q38.IsChecked = False
c = c + 1
ElseIf q39.IsChecked = True Then
w(39) = w(39) + 1
My.Settings.c39 = w(39)
q39.IsChecked = False
c = c + 1
ElseIf q40.IsChecked = True Then
w(40) = w(40) + 1
My.Settings.c40 = w(40)
q40.IsChecked = False
c = c + 1
ElseIf q41.IsChecked = True Then
w(41) = w(41) + 1
My.Settings.c41 = w(41)
q41.IsChecked = False
c = c + 1
ElseIf q42.IsChecked = True Then
w(42) = w(42) + 1
My.Settings.c42 = w(42)
q42.IsChecked = False
c = c + 1
ElseIf q43.IsChecked = True Then
w(43) = w(43) + 1
My.Settings.c43 = w(43)
q43.IsChecked = False
c = c + 1
ElseIf q44.IsChecked = True Then
w(44) = w(44) + 1
My.Settings.c44 = w(44)
q44.IsChecked = False
c = c + 1
ElseIf q45.IsChecked = True Then
w(45) = w(45) + 1
My.Settings.c45 = w(45)
q45.IsChecked = False
c = c + 1
Else
Me.Opacity = 0.3
MessageBox.Show("Please select an exhibit to vote!", "Invalid Selection", MessageBoxButton.OK, MessageBoxImage.Warning)
Me.Opacity = 1
GoTo Label
End If
vote.grp.Visibility = Windows.Visibility.Hidden
vote.img.Visibility = Windows.Visibility.Hidden
vote.submit.Visibility = Windows.Visibility.Hidden
Me.Opacity = 0.3
MessageBox.Show("You just voted for what you thought was the best! :D Thank You", "Vote Casted", MessageBoxButton.OK, MessageBoxImage.Information)
Me.Opacity = 1
count.Text = c
My.Settings.count = c
My.Settings.Save()
vote.grp.Visibility = Windows.Visibility.Visible
vote.img.Visibility = Windows.Visibility.Visible
vote.submit.Visibility = Windows.Visibility.Visible
Label:
count.Text = c
My.Settings.count = c
My.Settings.Save()
End Sub
Private Sub q1_Checked(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q1.Checked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(225, 0, 0, 225)
q1.Foreground = fg
End Sub
Private Sub q1_Cd(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q1.Unchecked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(255, 0, 0, 0)
q1.Foreground = fg
End Sub
Private Sub q2_Checked(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q2.Checked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(225, 0, 0, 225)
q2.Foreground = fg
End Sub
Private Sub q2_Cd(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q2.Unchecked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(255, 0, 0, 0)
q2.Foreground = fg
End Sub
Private Sub q3_Checked(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q3.Checked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(225, 0, 0, 225)
q3.Foreground = fg
End Sub
Private Sub q3_Cd(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q3.Unchecked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(255, 0, 0, 0)
q3.Foreground = fg
End Sub
Private Sub q4_Checked(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q4.Checked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(225, 0, 0, 225)
q4.Foreground = fg
End Sub
Private Sub q4_Cd(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q4.Unchecked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(255, 0, 0, 0)
q4.Foreground = fg
End Sub
Private Sub q5_Checked(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q5.Checked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(225, 0, 0, 225)
q5.Foreground = fg
End Sub
Private Sub q5_Cd(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q5.Unchecked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(255, 0, 0, 0)
q5.Foreground = fg
End Sub
Private Sub q6_Checked(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q6.Checked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(225, 0, 0, 225)
q6.Foreground = fg
End Sub
Private Sub q6_Cd(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q6.Unchecked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(255, 0, 0, 0)
q6.Foreground = fg
End Sub
Private Sub q7_Checked(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q7.Checked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(225, 0, 0, 225)
q7.Foreground = fg
End Sub
Private Sub q7_Cd(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q7.Unchecked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(255, 0, 0, 0)
q7.Foreground = fg
End Sub
Private Sub q8_Checked(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q8.Checked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(225, 0, 0, 225)
q8.Foreground = fg
End Sub
Private Sub q8_Cd(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q8.Unchecked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(255, 0, 0, 0)
q8.Foreground = fg
End Sub
Private Sub q9_Checked(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q9.Checked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(225, 0, 0, 225)
q9.Foreground = fg
End Sub
Private Sub q9_Cd(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q9.Unchecked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(255, 0, 0, 0)
q9.Foreground = fg
End Sub
Private Sub q10_Checked(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q10.Checked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(225, 0, 0, 225)
q10.Foreground = fg
End Sub
Private Sub q10_Cd(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q10.Unchecked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(255, 0, 0, 0)
q10.Foreground = fg
End Sub
Private Sub q11_Checked(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q11.Checked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(225, 0, 0, 225)
q11.Foreground = fg
End Sub
Private Sub q11_Cd(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q11.Unchecked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(255, 0, 0, 0)
q11.Foreground = fg
End Sub
Private Sub q12_Checked(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q12.Checked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(225, 0, 0, 225)
q12.Foreground = fg
End Sub
Private Sub q12_Cd(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q12.Unchecked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(255, 0, 0, 0)
q12.Foreground = fg
End Sub
Private Sub q13_Checked(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q13.Checked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(225, 0, 0, 225)
q13.Foreground = fg
End Sub
Private Sub q13_Cd(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q13.Unchecked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(255, 0, 0, 0)
q13.Foreground = fg
End Sub
Private Sub q14_Checked(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q14.Checked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(225, 0, 0, 225)
q14.Foreground = fg
End Sub
Private Sub q14_Cd(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q14.Unchecked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(255, 0, 0, 0)
q14.Foreground = fg
End Sub
Private Sub q15_Checked(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q15.Checked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(225, 0, 0, 225)
q15.Foreground = fg
End Sub
Private Sub q15_Cd(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q15.Unchecked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(255, 0, 0, 0)
q15.Foreground = fg
End Sub
Private Sub q16_Checked(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q16.Checked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(225, 0, 0, 225)
q16.Foreground = fg
End Sub
Private Sub q16_Cd(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q16.Unchecked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(255, 0, 0, 0)
q16.Foreground = fg
End Sub
Private Sub q17_Checked(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q17.Checked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(225, 0, 0, 225)
q17.Foreground = fg
End Sub
Private Sub q17_Cd(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q17.Unchecked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(255, 0, 0, 0)
q17.Foreground = fg
End Sub
Private Sub q18_Checked(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q18.Checked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(225, 0, 0, 225)
q18.Foreground = fg
End Sub
Private Sub q18_Cd(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q18.Unchecked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(255, 0, 0, 0)
q18.Foreground = fg
End Sub
Private Sub q19_Checked(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q19.Checked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(225, 0, 0, 225)
q19.Foreground = fg
End Sub
Private Sub q19_Cd(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q19.Unchecked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(255, 0, 0, 0)
q19.Foreground = fg
End Sub
Private Sub q20_Checked(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q20.Checked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(225, 0, 0, 225)
q20.Foreground = fg
End Sub
Private Sub q20_Cd(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q20.Unchecked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(255, 0, 0, 0)
q20.Foreground = fg
End Sub
Private Sub q21_Checked(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q21.Checked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(225, 0, 0, 225)
q21.Foreground = fg
End Sub
Private Sub q21_Cd(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q21.Unchecked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(255, 0, 0, 0)
q21.Foreground = fg
End Sub
Private Sub q22_Checked(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q22.Checked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(225, 0, 0, 225)
q22.Foreground = fg
End Sub
Private Sub q22_Cd(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q22.Unchecked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(255, 0, 0, 0)
q22.Foreground = fg
End Sub
Private Sub q23_Checked(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q23.Checked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(225, 0, 0, 225)
q23.Foreground = fg
End Sub
Private Sub q23_Cd(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q23.Unchecked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(255, 0, 0, 0)
q23.Foreground = fg
End Sub
Private Sub q24_Checked(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q24.Checked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(225, 0, 0, 225)
q24.Foreground = fg
End Sub
Private Sub q24_Cd(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q24.Unchecked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(255, 0, 0, 0)
q24.Foreground = fg
End Sub
Private Sub q25_Checked(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q25.Checked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(225, 0, 0, 225)
q25.Foreground = fg
End Sub
Private Sub q25_Cd(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q25.Unchecked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(255, 0, 0, 0)
q25.Foreground = fg
End Sub
Private Sub q26_Checked(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q26.Checked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(225, 0, 0, 225)
q26.Foreground = fg
End Sub
Private Sub q26_Cd(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q26.Unchecked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(255, 0, 0, 0)
q26.Foreground = fg
End Sub
Private Sub q27_Checked(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q27.Checked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(225, 0, 0, 225)
q27.Foreground = fg
End Sub
Private Sub q27_Cd(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q27.Unchecked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(255, 0, 0, 0)
q27.Foreground = fg
End Sub
Private Sub q28_Checked(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q28.Checked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(225, 0, 0, 225)
q28.Foreground = fg
End Sub
Private Sub q28_Cd(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q28.Unchecked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(255, 0, 0, 0)
q28.Foreground = fg
End Sub
Private Sub q29_Checked(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q29.Checked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(225, 0, 0, 225)
q29.Foreground = fg
End Sub
Private Sub q29_Cd(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q29.Unchecked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(255, 0, 0, 0)
q29.Foreground = fg
End Sub
Private Sub q30_Checked(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q30.Checked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(225, 0, 0, 225)
q30.Foreground = fg
End Sub
Private Sub q30_Cd(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q30.Unchecked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(255, 0, 0, 0)
q30.Foreground = fg
End Sub
Private Sub q31_Checked(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles q31.Checked
Dim fg As New SolidColorBrush
fg.Color = Color.FromArgb(225, 0, 0, 225)
q31.Foreground = fg