Inheritance: ScriptEngine, IVsaSite
コード例 #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());
        }
コード例 #2
0
 public ScriptTimerMonitor(VsaScriptEngine engine, ISvgWindow window, object scriptOrClosure, ulong delay, bool isInterval)
 {
     if (delay == 0)
     delay = 1;
       this.engine = engine;
       this.window = window;
       this.scriptOrClosure = scriptOrClosure;
       this.timer = new Timer(delay);
       this.timer.AutoReset = isInterval;
       this.timer.Elapsed += new ElapsedEventHandler(this.EventHandler);
       this.timer.Enabled = true;
 }
コード例 #3
0
 public ScriptTimerMonitor(VsaScriptEngine engine, ISvgWindow window, object scriptOrClosure, ulong delay, bool isInterval)
 {
     if (delay == 0)
     {
         delay = 1;
     }
     this.engine          = engine;
     this.window          = window;
     this.scriptOrClosure = scriptOrClosure;
     this.timer           = new Timer(delay);
     this.timer.AutoReset = isInterval;
     this.timer.Elapsed  += new ElapsedEventHandler(this.EventHandler);
     this.timer.Enabled   = true;
 }
コード例 #4
0
 public ScriptEventMonitor(VsaScriptEngine engine, IAttribute att, ISvgWindow window)
 {
     this.att = att;
       this.engine = engine;
       this.window = window;
 }
コード例 #5
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();
 }
コード例 #6
0
 public ScriptEventMonitor(VsaScriptEngine engine, IAttribute att, ISvgWindow window)
 {
     this.att    = att;
     this.engine = engine;
     this.window = window;
 }