Exemple #1
0
 public void Shut()
 {
     System.Console.WriteLine(_name + ":I am cat ! I will catch you !");
     if (CatShut != null)
     {
         CatShutEventArgs e = new CatShutEventArgs();
         e.Name = this._name;
         CatShut(this, e);
     }
 }
Exemple #2
0
 public void MouseShut(object sender, CatShutEventArgs args)
 {
     System.Console.WriteLine(_name + ": The cat is coming! Lets get out of there!");
 }
Exemple #3
0
 public void Run(object sender, CatShutEventArgs args)
 {
     System.Console.WriteLine(_name + ":Run!Run!Run!" + args.Name + "is comning!");
 }