public Subscriber(string ID, Timer timer) { this.id = ID; this.timer = timer; timer.SecondPassed += HandleCustomEvent; }
static void Main(string[] args) { Timer timer = new Timer(10); timer.Methods = TestMethod1; timer.Methods += TestMethod2; Subscriber sub = new Subscriber("Test", timer); timer.Execute(); }