1 00:00:00,540 --> 00:00:01,480 Hello and welcome. 2 00:00:01,500 --> 00:00:11,060 In this lecture we are going to test our completed project so open up your visual studio and make sure 3 00:00:11,070 --> 00:00:14,040 you get the project open and less. 4 00:00:14,040 --> 00:00:22,590 Click on the Start button that will start debugging or test in the application or click start if you 5 00:00:22,590 --> 00:00:24,020 need to escape the screen. 6 00:00:24,030 --> 00:00:29,980 Just press enter or press any key and that should stop. 7 00:00:30,510 --> 00:00:37,560 The reason you had so many flickering was that the interval I go back into the design of you click on 8 00:00:37,560 --> 00:00:38,680 the timer. 9 00:00:38,700 --> 00:00:48,560 The interval for the screen to refresh is referenced in this value or 40 milliseconds which is fast. 10 00:00:48,560 --> 00:00:55,480 What I was doing basically is really to refresh the screen about 25 times a second so you may not want 11 00:00:55,500 --> 00:00:57,330 wanted to do that. 12 00:00:57,540 --> 00:01:01,470 You can change a one minute if you wanted to refresh from one minute. 13 00:01:01,470 --> 00:01:09,810 You need to change his value to sixty thousand so one minute will give you sixty thousand merely seconds. 14 00:01:09,990 --> 00:01:12,710 So let's check that out and see the difference. 15 00:01:12,720 --> 00:01:16,040 Let's start all right. 16 00:01:16,050 --> 00:01:23,550 You can see the difference now that the flick flickering is not as much so it doesn't refresh to refresh 17 00:01:23,790 --> 00:01:29,370 every 1 minute rather than twelve about 25 times a second. 18 00:01:29,850 --> 00:01:33,320 So I think this is more controlled refresh rate. 19 00:01:33,420 --> 00:01:34,330 So I just press. 20 00:01:34,410 --> 00:01:46,870 I also notice that the images on the screen are added on from the picture directory and what happens. 21 00:01:46,970 --> 00:01:57,000 The code we have written it will keep adding an image onto the screen until the content gets to 50 when 22 00:01:57,000 --> 00:01:58,330 he gets up to 50. 23 00:01:58,340 --> 00:02:02,310 He then stopped as long as the images on the screen are less than 50. 24 00:02:02,310 --> 00:02:06,070 It will keep adding until we get to this point. 25 00:02:06,090 --> 00:02:11,300 That was we had a variable an account asset to control that. 26 00:02:11,700 --> 00:02:15,230 So there are some images also hidden behind some other images. 27 00:02:15,360 --> 00:02:19,490 So notice it's just been a flickering so it has just refreshed. 28 00:02:19,530 --> 00:02:27,510 So I press enter or any key on the keyboard and that should stop the screen saver. 29 00:02:27,510 --> 00:02:34,020 So if you want the screen saver to refresh for example every two minutes you change its value to one 30 00:02:34,020 --> 00:02:36,080 hundred and twenty thousand. 31 00:02:36,600 --> 00:02:40,980 So let's go back into the code and check something there. 32 00:02:41,010 --> 00:02:42,000 Here. 33 00:02:42,000 --> 00:02:46,540 This is what's responsible for the image count on the screen. 34 00:02:47,080 --> 00:02:54,920 Okay so it will keep adding an image as long as it is less than 50 when is big. 35 00:02:54,930 --> 00:02:59,220 When it becomes 50 it will stop adding the images. 36 00:02:59,220 --> 00:03:02,190 So I'm going to I want you to have a quick look. 37 00:03:02,190 --> 00:03:05,010 I'm gonna try something out. 38 00:03:05,130 --> 00:03:10,100 Let's click this again to see what the images look like. 39 00:03:10,380 --> 00:03:15,690 See what they look like now I'm gonna increase that value to that we have more images added. 40 00:03:15,830 --> 00:03:23,160 I'm going to increase this from say 50 this value by the way. 41 00:03:23,160 --> 00:03:25,920 Play around with it and see what suits you best. 42 00:03:26,790 --> 00:03:36,390 I'm gonna be adventurous and make this three thousand so it will keep adding that it is going to add 43 00:03:37,080 --> 00:03:43,670 up to three thousand two thousand plus you'll keep adding images until it gets to 3000. 44 00:03:43,680 --> 00:03:48,210 Bear in mind this can be intensive on memory usage on your computer so don't do this. 45 00:03:48,630 --> 00:03:54,900 I'm only doing this for just to illustrate something but it is memory intensive so it will use a lot 46 00:03:54,900 --> 00:03:59,390 of your memory and probably hold up some other resources that your computer needs. 47 00:03:59,390 --> 00:04:01,130 So be careful with that. 48 00:04:01,170 --> 00:04:03,260 I'm just doing this for illustration purposes. 49 00:04:03,270 --> 00:04:06,740 So let me click on Start so you can see the difference. 50 00:04:06,900 --> 00:04:09,250 It will had so many more images. 51 00:04:09,450 --> 00:04:10,020 You can see. 52 00:04:10,070 --> 00:04:17,730 EDIT So the image you keep adding onto it gets to almost 3000 so you stops where the images are just 53 00:04:17,730 --> 00:04:21,000 less than 3000 you can see the images everywhere. 54 00:04:21,000 --> 00:04:24,560 So what happens after every minute. 55 00:04:24,810 --> 00:04:28,950 It was shuffle the images around you see after every minute. 56 00:04:29,580 --> 00:04:30,680 So that's the difference. 57 00:04:30,690 --> 00:04:36,290 This is ok but it can be memory intensive so be careful. 58 00:04:36,330 --> 00:04:42,870 So the reason for that because I increase the number of images here so use this with caution. 59 00:04:42,960 --> 00:04:48,020 So if you want so many images on your screen then you can increase the value. 60 00:04:48,070 --> 00:04:54,090 All right so that's it for this lecture. 61 00:04:54,090 --> 00:04:56,160 Thank you so much for watching. 62 00:04:56,160 --> 00:04:57,120 Take care. 63 00:04:57,130 --> 00:04:57,960 Buy from him.