/// <summary>
 /// Main method.
 /// </summary>
 public static void Main()
 {
     var person = new Person();
     person.PropertyChanged += PersonPropertyChanged;
     person.Age = 12;
     person.Name = "goshfsksodfksodfhsudfo";
     person.Age = 1;
 }
示例#2
0
 static void Main(string[] args)
 {
     Person gosho = new Person();
     gosho.PropertyChanged += PersonPropertyChanged;
     gosho.Age = 20;        // Age property changed
     gosho.Name = "Gosho";  // Name property changed
     gosho.Age = 21;        // Age property changed
     gosho.Name = "Ivan";   // Name property changed
     gosho.City = "Vraca";  // City property changed
 }