Hello and welcome.
In this lecture we are going to test our completed project so open up your visual studio and make sure
you get the project open and less.
Click on the Start button that will start debugging or test in the application or click start if you
need to escape the screen.
Just press enter or press any key and that should stop.
The reason you had so many flickering was that the interval I go back into the design of you click on
the timer.
The interval for the screen to refresh is referenced in this value or 40 milliseconds which is fast.
What I was doing basically is really to refresh the screen about 25 times a second so you may not want
wanted to do that.
You can change a one minute if you wanted to refresh from one minute.
You need to change his value to sixty thousand so one minute will give you sixty thousand merely seconds.
So let's check that out and see the difference.
Let's start all right.
You can see the difference now that the flick flickering is not as much so it doesn't refresh to refresh
every 1 minute rather than twelve about 25 times a second.
So I think this is more controlled refresh rate.
So I just press.
I also notice that the images on the screen are added on from the picture directory and what happens.
The code we have written it will keep adding an image onto the screen until the content gets to 50 when
he gets up to 50.
He then stopped as long as the images on the screen are less than 50.
It will keep adding until we get to this point.
That was we had a variable an account asset to control that.
So there are some images also hidden behind some other images.
So notice it's just been a flickering so it has just refreshed.
So I press enter or any key on the keyboard and that should stop the screen saver.
So if you want the screen saver to refresh for example every two minutes you change its value to one
hundred and twenty thousand.
So let's go back into the code and check something there.
Here.
This is what's responsible for the image count on the screen.
Okay so it will keep adding an image as long as it is less than 50 when is big.
When it becomes 50 it will stop adding the images.
So I'm going to I want you to have a quick look.
I'm gonna try something out.
Let's click this again to see what the images look like.
See what they look like now I'm gonna increase that value to that we have more images added.
I'm going to increase this from say 50 this value by the way.
Play around with it and see what suits you best.
I'm gonna be adventurous and make this three thousand so it will keep adding that it is going to add
up to three thousand two thousand plus you'll keep adding images until it gets to 3000.
Bear in mind this can be intensive on memory usage on your computer so don't do this.
I'm only doing this for just to illustrate something but it is memory intensive so it will use a lot
of your memory and probably hold up some other resources that your computer needs.
So be careful with that.
I'm just doing this for illustration purposes.
So let me click on Start so you can see the difference.
It will had so many more images.
You can see.
EDIT So the image you keep adding onto it gets to almost 3000 so you stops where the images are just
less than 3000 you can see the images everywhere.
So what happens after every minute.
It was shuffle the images around you see after every minute.
So that's the difference.
This is ok but it can be memory intensive so be careful.
So the reason for that because I increase the number of images here so use this with caution.
So if you want so many images on your screen then you can increase the value.
All right so that's it for this lecture.
Thank you so much for watching.
Take care.
Buy from him.