public void Shout() { Console.WriteLine($"喵~,我是{name}."); if (CatShout != null) { CatShoutEventArgs e = new CatShoutEventArgs(); e.Name = name; CatShout(this, e); } }
public void Run(object sender, CatShoutEventArgs args) { Console.WriteLine($"Nico {args.Name} 来了,{name}快跑!"); }