예제 #1
0
        static void Main()
        {
            Timer timer = new Timer(5);

            timer.SomeMethods += FirstTestMethod;
            timer.SomeMethods += SecondTestMethod;
            timer.ExecuteMethods();
        }
예제 #2
0
        static void Main()
        {
            Timer timer = new Timer(3);

            timer.Method = PrintTimeNow;

            timer.ExecuteMethods();
        }
예제 #3
0
        static void Main(string[] args)
        {
            Timer timer = new Timer(2);
            timer.AllMethods += SaySomething;
            timer.AllMethods += ILoveYou;

            timer.ExecuteMethods();
        }
예제 #4
0
        static void Main()
        {
            Timer timer = new Timer(5);

            timer.SomeMethods += FirstTestMethod;
            timer.SomeMethods += SecondTestMethod;

            timer.ExecuteMethods();
        }
예제 #5
0
        static void Main(string[] args)
        {
            Timer timer = new Timer(2);

            timer.AllMethods += SaySomething;
            timer.AllMethods += ILoveYou;

            timer.ExecuteMethods();
        }