public void EventCount(object sender, EvanEventArgs Ae) { while (Ae.I != count) { count++; Console.WriteLine("sender : {0} has called this Function {1} Times", sender, count); } }
public void OnevanEvent(int i) { EvanEventArgs Ae = new EvanEventArgs(i); if (evanEvent != null) { evanEvent(this, Ae); } }