-
Notifications
You must be signed in to change notification settings - Fork 0
/
Form1.cs
1200 lines (1152 loc) · 38.4 KB
/
Form1.cs
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
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Reflection;
using System.Threading;
using System.Windows.Forms;
using System.Speech.Synthesis;
using System.Net;
using System.ComponentModel;
using System.Net.Http;
namespace RYTV3
{
public partial class Form1 : Form
{
private string filePath;
private string fileContent;
private int numberofVideos = 1;
public int videonumbers;
public string videoselection;
public string ytid;
public string thumbnail;
static Random rnd = new Random();
public string v1;
public string v2;
public string v3;
public string v4;
public string v5;
public string v6;
public List<String> youtubelist = new List<String>();
/// <summary>
/// CONST
/// </summary>
// Day of the week
public string Q_Day;
// Current Month
public string Q_Month;
// Current Date
public string Q_Date;
// Current Weather
public string Q_Weather;
public string Q_Temp;
public Form1()
{
var fileContent = string.Empty;
var filePath = string.Empty;
InitializeComponent();
}
/// <summary>
/// Load youtube list from File.
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void loadList_btn_Click(object sender, EventArgs e)
{
using (OpenFileDialog openFileDialog = new OpenFileDialog())
{
openFileDialog.InitialDirectory = "c:\\";
openFileDialog.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*";
openFileDialog.FilterIndex = 2;
openFileDialog.RestoreDirectory = true;
if (openFileDialog.ShowDialog() == DialogResult.OK)
{
//Get the path of specified file
filePath = openFileDialog.FileName;
Properties.Settings.Default.filelocation = filePath;
Properties.Settings.Default.Save();
//Read the contents of the file into a stream
var fileStream = openFileDialog.OpenFile();
using (StreamReader reader = new StreamReader(fileStream))
{
// read the content and then put it int a list of strings
fileContent = reader.ReadToEnd();
var videolist = File.ReadAllLines(filePath);
var youtubelist = new List<string>(videolist);
// count the number of videos
var lineCount = File.ReadAllLines(filePath).Length;
status_lbl.ForeColor = Color.Blue;
status_lbl.Text = Convert.ToString(lineCount) + " Videos Loaded";
}
}
}
}
private void numericUpDown1_ValueChanged(object sender, EventArgs e)
{
int number;
number = Convert.ToInt32(numericUpDown1.Value);
videonumbers = number;
switch (number)
{
case 1:
// only show 1 groupbox
gb1.Show();
gb2.Hide();
gb3.Hide();
gb4.Hide();
gb5.Hide();
gb6.Hide();
// change location to center on screen
gb1.Location = new Point(406, 69);
// since we only have on group box make it larger
gb1.Width = 550;
gb1.Height = 450;
break;
case 2:
// move groupbox back to default location
gb1.Location = new Point(200, 69);
// reset to gb1 to default size
gb1.Width = 522;
gb1.Height = 422;
// move gb2 over to the right
gb2.Location = new Point(756, 69);
// make gb2 larger
gb2.Width = 522;
gb2.Height = 422;
gb1.Update();
gb1.Show();
gb2.Show();
gb3.Hide();
gb4.Hide();
gb5.Hide();
gb6.Hide();
break;
case 3:
// set gb1 & gb2 to default location.
gb1.Location = new Point(181, 52);
gb2.Location = new Point(550, 52);
// set gb1 & gb2 back to default size
gb1.Width = 322;
gb1.Height = 220;
gb2.Width = 322;
gb2.Height = 220;
gb3.Width = 322;
gb3.Height = 220;
gb1.Show();
gb2.Show();
gb3.Show();
gb4.Hide();
gb5.Hide();
gb6.Hide();
break;
case 4:
// set gb1 & gb2 to default location.
// gb1.Location = new Point(250, 69);
// gb2.Location = new Point(606, 69);
// set gb1 & gb2 back to default size
gb1.Width = 322;
gb1.Height = 220;
gb2.Width = 322;
gb2.Height = 220;
gb3.Width = 322;
gb3.Height = 220;
gb4.Location = new Point(181, 314);
gb4.Width = 322;
gb4.Height = 220;
gb1.Show();
gb2.Show();
gb3.Show();
gb4.Show();
gb5.Hide();
gb6.Hide();
break;
case 5:
// set gb1 & gb2 to default location.
gb1.Width = 322;
gb1.Height = 220;
gb2.Width = 322;
gb2.Height = 220;
gb3.Width = 322;
gb3.Height = 220;
gb4.Location = new Point(181, 314);
gb4.Width = 322;
gb4.Height = 220;
gb1.Show();
gb2.Show();
gb3.Show();
gb4.Show();
gb5.Show();
gb6.Hide();
break;
case 6:
// set gb1 & gb2 to default location.
gb1.Width = 322;
gb1.Height = 220;
gb2.Width = 322;
gb2.Height = 220;
gb3.Width = 322;
gb3.Height = 220;
gb4.Location = new Point(181, 314);
gb4.Width = 322;
gb4.Height = 220;
gb1.Show();
gb2.Show();
gb3.Show();
gb4.Show();
gb5.Show();
gb6.Show();
break;
}
}
/// <summary>
/// Load the youtube list into the list of strings
/// </summary>
private void loadlist()
{
string filelocation;
bool fileex;
Properties.Settings.Default.Reload();
filelocation = Properties.Settings.Default.filelocation;
fileex = File.Exists(filelocation);
if (fileex == false)
{
return;
}
using (StreamReader Reader = new StreamReader(filelocation))
{
while (Reader.EndOfStream == false)
youtubelist.Add(Reader.ReadLine());
}
}
/// <summary>
/// Get the Thumbnail
/// </summary>
/// <param name="yturl"></param>
///
private void getThumbNail(string ytaddress)
{
thumbnail = "https://img.youtube.com/vi/" + ytaddress + "/hqdefault.jpg";
}
// Extract just the Unique ID.
private void getytID(string yturl)
{
ytid = yturl.Replace("https://www.youtube.com/watch?v=", "");
getThumbNail(ytid);
}
/// <summary>
/// get a Random Video from youtube list
/// </summary>
///
private void RndVideo()
{
loadlist();
int r = rnd.Next(youtubelist.Count);
videoselection = (string)youtubelist[r];
}
/// <summary>
/// Get a Random Videos button
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void getVids_btn_Click(object sender, EventArgs e)
{
int choices;
choices = Convert.ToInt32(numericUpDown1.Value);
for (int i = 0; i < choices; i++)
{
bool checkfile;
checkfile = File.Exists(filePath);
if (checkfile == false)
{
MessageBox.Show("Please Load youtube list First");
return;
} // end of if statement
// Zero = 1 (Count starts at Zero instead of 1)
// this switch provide each picturebox with a video choice based on how many groupboxes are displayed.
switch (i)
{
// Only 1 Video
case 0:
start0:
Thread t = new Thread(new ThreadStart(RndVideo));
t.Start();
if (videoselection == null)
{
RndVideo();
}
// link used for pb click
v1 = videoselection;
//Console.WriteLine(videoselection);
try
{
getytID(videoselection);
pb1.Load(thumbnail);
//pb11.LoadImage(thumbnail);
}
catch (Exception f)
{
Console.WriteLine("{0} Exception caught.", f);
goto start0;
}
break;
// Two Videos
case 1:
start1:
Thread t1 = new Thread(new ThreadStart(RndVideo));
t1.Start();
if (videoselection == null)
{
RndVideo();
}
// used for pb2 click
v2 = videoselection;
try
{
getytID(videoselection);
Console.WriteLine(thumbnail);
pb2.Load(thumbnail);
//pb11.LoadImage(thumbnail);
}
catch (Exception f)
{
Console.WriteLine("{0} Exception caught.", f);
goto start1;
}
break;
// Three Videos
case 2:
start2:
Thread t2 = new Thread(new ThreadStart(RndVideo));
t2.Start();
if (videoselection == null)
{
RndVideo();
}
// used for pb3 click
v3 = videoselection;
//Console.WriteLine(videoselection);
try
{
getytID(videoselection);
Console.WriteLine(thumbnail);
pb3.Load(thumbnail);
//pb11.LoadImage(thumbnail);
}
catch (Exception f)
{
Console.WriteLine("{0} Exception caught.", f);
goto start2;
}
break;
// Four Videos
case 3:
start3:
Thread t3 = new Thread(new ThreadStart(RndVideo));
t3.Start();
if (videoselection == null)
{
RndVideo();
}
// used for pb4 click
v4 = videoselection;
//Console.WriteLine(videoselection);
try
{
getytID(videoselection);
Console.WriteLine(thumbnail);
pb4.Load(thumbnail);
//pb11.LoadImage(thumbnail);
}
catch (Exception f)
{
Console.WriteLine("{0} Exception caught.", f);
goto start3;
}
break;
case 4:
start4:
Thread t4 = new Thread(new ThreadStart(RndVideo));
t4.Start();
if (videoselection == null)
{
RndVideo();
}
// used for pb5 click
v5 = videoselection;
//Console.WriteLine(videoselection);
try
{
getytID(videoselection);
Console.WriteLine(thumbnail);
pb5.Load(thumbnail);
//pb11.LoadImage(thumbnail);
}
catch (Exception f)
{
Console.WriteLine("{0} Exception caught.", f);
goto start4;
}
break;
case 5:
start5:
Thread t5 = new Thread(new ThreadStart(RndVideo));
t5.Start();
if (videoselection == null)
{
RndVideo();
}
// used for pb6 click
v6 = videoselection;
//Console.WriteLine(videoselection);
try
{
getytID(videoselection);
Console.WriteLine(thumbnail);
pb6.Load(thumbnail);
//pb11.LoadImage(thumbnail);
}
catch (Exception f)
{
Console.WriteLine("{0} Exception caught.", f);
goto start5;
}
break;
} // end of switch
} // end of for statment
}
/// <summary>
/// When the Form Loads Set these Settings
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void Form1_Load_1(object sender, EventArgs e)
{
// set number spinner to 2
numericUpDown1.Value = 2;
string version = Assembly.GetExecutingAssembly().GetName().Version.ToString();
build_label.Text = String.Format("version {0}", version);
// check license
WebClient client = new WebClient();
Stream stream = client.OpenRead("https://pastebin.com/raw/vjEgqBMq");
StreamReader reader = new StreamReader(stream);
String content = reader.ReadToEnd();
content = content.TrimEnd();
Console.WriteLine(content);
if (content != "wings2022")
{
lic_lbl.Text = "Invalid License";
lic_lbl.ForeColor = System.Drawing.Color.DarkGreen;
MessageBox.Show("License has epired or is invalid, Please contact JJS Sofrware LLC");
System.Windows.Forms.Application.Exit();
}
else
{
lic_lbl.Text = "OK";
lic_lbl.ForeColor = System.Drawing.Color.DarkGreen;
}
}
/// <summary>
/// pb 1 click
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void pb1_Click(object sender, EventArgs e)
{
// Stop Null box clicks
if (v1 == null)
{
return;
}
System.Diagnostics.Process.Start(v1);
}
private void pb2_Click(object sender, EventArgs e)
{
// Stop Null box clicks
if (v2 == null)
{
return;
}
System.Diagnostics.Process.Start(v2);
}
private void pb3_Click(object sender, EventArgs e)
{
// Stop Null box clicks
if (v3 == null)
{
return;
}
System.Diagnostics.Process.Start(v3);
}
private void pb4_Click(object sender, EventArgs e)
{
// Stop Null box clicks
if (v4 == null)
{
return;
}
System.Diagnostics.Process.Start(v4);
}
private void pb5_Click(object sender, EventArgs e)
{
// Stop Null box clicks
if (v5 == null)
{
return;
}
System.Diagnostics.Process.Start(v5);
}
private void pb6_Click(object sender, EventArgs e)
{
// Stop Null box clicks
if (v6 == null)
{
return;
}
System.Diagnostics.Process.Start(v6);
}
///
////
//// - Start of Questions Section
///
///
/////
///
//// =========== FUNCTIONS FOR QUESTIONS ==========
///
public void DaysOfTheWeek(string day)
{
SpeechSynthesizer synthesizer = new SpeechSynthesizer();
synthesizer.Volume = 100; // 0...100
synthesizer.Rate = -2; // -10...10
synthesizer.Speak(day);
Q_Day = day;
}
public void CurrentMonth(string month)
{
SpeechSynthesizer synthesizer = new SpeechSynthesizer();
synthesizer.Volume = 100; // 0...100
synthesizer.Rate = -2; // -10...10
synthesizer.Speak(month);
Q_Month = month;
}
public void MonthDate(string monthDate)
{
SpeechSynthesizer synthesizer = new SpeechSynthesizer();
synthesizer.Volume = 100; // 0...100
synthesizer.Rate = -2; // -10...10
synthesizer.Speak(monthDate);
Q_Date = monthDate;
}
// Day of the Month
public void DateOfMonth(string Date)
{
SpeechSynthesizer synthesizer = new SpeechSynthesizer();
synthesizer.Volume = 100; // 0...100
synthesizer.Rate = -2; // -10...10
synthesizer.Speak(Date);
Q_Date = Date;
}
/// <summary>
/// Weather Function
/// </summary>
/// <param name="Date"></param>
public void CurrentWeather(string Weather)
{
SpeechSynthesizer synthesizer = new SpeechSynthesizer();
synthesizer.Volume = 100; // 0...100
synthesizer.Rate = -2; // -10...10
synthesizer.Speak("The Weather is" + Weather);
Q_Weather = Weather;
}
/// The Temperature Function
///
///
public void CurrentTemp(string temp)
{
SpeechSynthesizer synthesizer = new SpeechSynthesizer();
synthesizer.Volume = 100; // 0...100
synthesizer.Rate = -2; // -10...10
synthesizer.Speak("The Temperature is" + temp);
Q_Temp = temp;
}
//// ============== END OF QUESTION FUNCTIONS ================
///
/// <summary>
/// Days of the Week Button.
/// These buttonss
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
///
/// MONDAY
private void button1_Click(object sender, EventArgs e)
{
DaysOfTheWeek("Monday");
//string text = button1.Text;
//SpeechSynthesizer synthesizer = new SpeechSynthesizer();
//synthesizer.Volume = 100; // 0...100
//synthesizer.Rate = -2; // -10...10
// Synchronous
//synthesizer.Speak("Monday");
// Set Const For Day of the Week
//Q_Day = "Monday";
}
// TUESDAY
private void button2_Click(object sender, EventArgs e)
{
DaysOfTheWeek("Tuesday");
}
/// Wednesday
private void button3_Click(object sender, EventArgs e)
{
DaysOfTheWeek("Wednesday");
}
// THURSDAY--
private void button4_Click(object sender, EventArgs e)
{
DaysOfTheWeek("Thursday");
}
/// FRIDAY
private void button5_Click(object sender, EventArgs e)
{
DaysOfTheWeek("Friday");
}
// SUNDAY
private void button7_Click(object sender, EventArgs e)
{
DaysOfTheWeek("Saturday");
}
// SUNDAY
private void button6_Click(object sender, EventArgs e)
{
DaysOfTheWeek("Sunday");
}
/// <summary>
/// GO TO NEXT TAB
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button8_Click(object sender, EventArgs e)
{
flatTabControl2.SelectedIndex = (flatTabControl2.SelectedIndex + 1 < flatTabControl2.TabCount) ?
flatTabControl2.SelectedIndex + 1 : flatTabControl2.SelectedIndex;
}
///
/// WHAT MONTH IS IT?
///
/// <summary>
/// January Button
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button16_Click(object sender, EventArgs e)
{
CurrentMonth("January");
}
// February Button
private void button15_Click(object sender, EventArgs e)
{
CurrentMonth("February");
}
/// <summary>
/// March Button
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button14_Click(object sender, EventArgs e)
{
CurrentMonth("March");
}
/// <summary>
/// April Button
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button13_Click(object sender, EventArgs e)
{
CurrentMonth("April");
}
/// <summary>
/// May Button
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button12_Click(object sender, EventArgs e)
{
CurrentMonth("May");
}
/// <summary>
/// Month Of June Button
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button10_Click(object sender, EventArgs e)
{
CurrentMonth("June");
}
/// <summary>
/// The Month of July
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button11_Click(object sender, EventArgs e)
{
CurrentMonth("July");
}
/// <summary>
/// The Month of August Button
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button17_Click(object sender, EventArgs e)
{
CurrentMonth("August");
}
/// <summary>
/// The month of September Button
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button18_Click(object sender, EventArgs e)
{
CurrentMonth("September");
}
/// <summary>
/// The month of October
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button19_Click(object sender, EventArgs e)
{
CurrentMonth("October");
}
/// <summary>
/// The Month of Novmember
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button20_Click(object sender, EventArgs e)
{
CurrentMonth("November");
}
/// <summary>
/// The Month of December
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button21_Click(object sender, EventArgs e)
{
CurrentMonth("December");
}
/// <summary>
/// Go to the next Tab Button (tab 3)
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button9_Click(object sender, EventArgs e)
{
flatTabControl2.SelectedIndex = (flatTabControl2.SelectedIndex + 1 < flatTabControl2.TabCount) ?
flatTabControl2.SelectedIndex + 1 : flatTabControl2.SelectedIndex;
}
/// <summary>
/// Numbers of the Month
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
///
////
/// Number 1
///
private void button22_Click(object sender, EventArgs e)
{
DateOfMonth("1");
}
/// <summary>
/// Number 2
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button23_Click(object sender, EventArgs e)
{
DateOfMonth("2");
}
/// <summary>
/// Number 3
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button24_Click(object sender, EventArgs e)
{
DateOfMonth("3");
}
/// <summary>
/// Number 4
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button25_Click(object sender, EventArgs e)
{
DateOfMonth("4");
}
/// <summary>
/// Number 5
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button26_Click(object sender, EventArgs e)
{
DateOfMonth("5");
}
/// <summary>
/// Number 6th
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button27_Click(object sender, EventArgs e)
{
DateOfMonth("6");
}
/// <summary>
/// Number 7tn
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button28_Click(object sender, EventArgs e)
{
DateOfMonth("7");
}
/// <summary>
/// number 8
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button35_Click(object sender, EventArgs e)
{
DateOfMonth("8");
}
/// <summary>
/// Number 9
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button34_Click(object sender, EventArgs e)
{
DateOfMonth("9");
}
/// <summary>
/// Number 10
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button33_Click(object sender, EventArgs e)
{
DateOfMonth("10");
}
/// <summary>
/// Number 11
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button53_Click(object sender, EventArgs e)
{
DateOfMonth("11");
}
/// <summary>
/// Number 12
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button32_Click(object sender, EventArgs e)
{
DateOfMonth("12");
}
private void button31_Click(object sender, EventArgs e)
{
DateOfMonth("13");
}
private void button30_Click(object sender, EventArgs e)
{
DateOfMonth("14");
}
//number 15
private void button29_Click(object sender, EventArgs e)
{
DateOfMonth("15");
}
/// <summary>
/// Number 16
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button42_Click(object sender, EventArgs e)
{
DateOfMonth("16");
}
/// <summary>
/// Number 17
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button41_Click(object sender, EventArgs e)
{
DateOfMonth("17");
}
/// <summary>
/// Number 18
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button40_Click(object sender, EventArgs e)
{
DateOfMonth("18");
}
/// <summary>
/// Number 19
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button39_Click(object sender, EventArgs e)
{
DateOfMonth("19");
}
/// <summary>
/// Number 20
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button38_Click(object sender, EventArgs e)
{
DateOfMonth("20");
}
/// <summary>
/// Number 21
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button37_Click(object sender, EventArgs e)
{
DateOfMonth("21");
}
/// <summary>
/// Number 22
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button36_Click(object sender, EventArgs e)
{
DateOfMonth("22");
}
/// <summary>
/// Number 23
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button49_Click(object sender, EventArgs e)
{
DateOfMonth("23");
}
/// <summary>
/// Number 24
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button48_Click(object sender, EventArgs e)
{
DateOfMonth("24");
}