Пример #1
0
 public TimedMethod(TimedMethodDelegate a, int b, int c, object d)
 {
     MethodToInvoke = a;
     consistentTime = b / 100;
     time           = b / 100;
     repeat         = c;
     PassBack       = d;
 }
Пример #2
0
 public TimedMethod(TimedMethodDelegate a, int b, int c, object d)
 {
     MethodToInvoke = a;
     consistentTime = b / 100;
     time = b / 100;
     repeat = c;
     PassBack = d;
 }
Пример #3
0
        /// <summary>
        /// Add a method to be called in a specified time for a specified number of repetitions
        /// </summary>
        /// <param name="d">The delegate representing the method to be called</param>
        /// <param name="time">The amount of milliseconds you want to wait to call this method, and to wait inbetween each calling if it repeats (note that this is rounded to 10ths of a second)</param>
        /// <param name="repeat">the number of times to repeat this call</param>
        /// <param name="PassBack">the object to pass back to the method that is called.</param>
        public static void AddTimedMethod(TimedMethodDelegate d, int time, int repeat, object PassBack)
        {
            TimedMethod TMS = new TimedMethod(d, time, repeat, PassBack);

            TimedMethodList.Add(TMS);
        }
Пример #4
0
 /// <summary>
 /// Add a method to be called in a specified time for a specified number of repetitions
 /// </summary>
 /// <param name="d">The delegate representing the method to be called</param>
 /// <param name="time">The amount of milliseconds you want to wait to call this method, and to wait inbetween each calling if it repeats (note that this is rounded to 10ths of a second)</param>
 /// <param name="repeat">the number of times to repeat this call</param>
 /// <param name="PassBack">the object to pass back to the method that is called.</param>
 public static void AddTimedMethod(TimedMethodDelegate d, int time, int repeat, object PassBack)
 {
     TimedMethod TMS = new TimedMethod(d, time, repeat, PassBack);
     TimedMethodList.Add(TMS);
 }