Summary description for ScriptTimerMonitor.
Esempio n. 1
0
        public static string CreateMonitor(VsaScriptEngine engine, ISvgWindow window, object scriptOrClosure, ulong delay, bool isInterval)
        {
            ScriptTimerMonitor stm = new ScriptTimerMonitor(engine, window, scriptOrClosure, delay, isInterval);

            timerMonitors.Add(stm);
            return("" + stm.timer.GetHashCode());
        }
Esempio n. 2
0
        public static void ClearMonitor(string token)
        {
            ScriptTimerMonitor monToClear = null;

            foreach (ScriptTimerMonitor stm in timerMonitors)
            {
                if ("" + stm.timer.GetHashCode() == token)
                {
                    monToClear = stm;
                    break;
                }
            }
            if (monToClear != null)
            {
                monToClear.timer.Enabled = false;
                monToClear.timer         = null;
                timerMonitors.Remove(monToClear);
            }
        }
Esempio n. 3
0
 public void clearInterval(string token)
 {
     ScriptTimerMonitor.ClearMonitor(token);
 }
Esempio n. 4
0
 public string setInterval(object scriptOrClosure, ulong delay)
 {
     return(ScriptTimerMonitor.CreateMonitor((VsaScriptEngine)Engine, (ISvgWindow)baseObject, scriptOrClosure, delay, true));
 }
Esempio n. 5
0
 public void clearTimeout(string token)
 {
     ScriptTimerMonitor.ClearMonitor(token);
 }
Esempio n. 6
0
 public static string CreateMonitor(VsaScriptEngine engine, ISvgWindow window, object scriptOrClosure, ulong delay, bool isInterval)
 {
     ScriptTimerMonitor stm = new ScriptTimerMonitor(engine, window, scriptOrClosure, delay, isInterval);
       timerMonitors.Add(stm);
       return ""+stm.timer.GetHashCode();
 }