static void Main(string[] args) { TimerN nowaTimer = new TimerN(); MyClass someExample = new MyClass(nowaTimer); nowaTimer.DayMethod(6); nowaTimer.MinutesMethod(7); nowaTimer.MonthMethod(1); nowaTimer.SecondsMethod(2); }
public MyClass(TimerN time) { this.hurryUp = time; this.hurryUp.MyEvent += new ChangedEventHandler(SomethingChanged); // hard with this events.... }