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); } }
public void MouseShut(object sender, CatShutEventArgs args) { System.Console.WriteLine(_name + ": The cat is coming! Lets get out of there!"); }
public void Run(object sender, CatShutEventArgs args) { System.Console.WriteLine(_name + ":Run!Run!Run!" + args.Name + "is comning!"); }