One. Enumeration
Enumerations are a descriptive set of names
Define a limited set of values that cannot contain methods
To constrain a possible value
1. Defining enum Classes
public enum Gender
{
Male,female
}
2. Using enumerations to represent integer values
public enum Gender
{
Male=1,
Female=0
}
Console.WriteLine ((int) gender.male);
3. Enumeration type and string conversions
Enumeration to String
Gender.Female.ToStirng ();
String conversion to Enumeration
(Gender) (Enum.parse (typeof (Gender), "Male");
Two. Pictruebox
Image to display in the control
SizeMode How to handle the size relationship of images and controls
Three. Timer
The frequency, in milliseconds, that the interval event occurred
Whether enabled events are raised on a timed basis
Tick events that occur periodically
Four. Timed switching of images
if (Index < this.ilabout.images.count-1)
{
index++;
}
Else
{
index = 0;
}
This.picabout.Image = This.ilabout.images[index];
Implementing Windows Data Updates