コード例 #1
0
 /// <summary>
 /// Sets a new action to process.
 /// </summary>
 /// <param name="action">the new action to process</param>
 public void Set(ScriptTimerAction action)
 {
     Exists   = true;
     instance = action.instance;
     method   = action.method;
     args     = action.args;
 }
コード例 #2
0
 /**
  * Sets the timer.
  * @param params the parameters used to set the timer.
  */
 public void Set(ScriptTimerInitializationParameters p)
 {
     Script = p.Script;
     Exists = true;
     Io     = p.Io;
     Msecs  = p.Milliseconds;
     Name   = p.Name;
     Action = new ScriptTimerAction(p.Obj, p.Method, p.Args);
     Tim    = p.StartTime;
     Times  = p.RepeatTimes;
     ClearFlags();
     AddFlag(p.FlagValues);
 }