public void Add(TimedVar <T> var) { Timer timer = new Timer(var.GetSeconds(), (t) => TimerFinished(t, var.GetVar())); timer.Run(); timers.Add(var, timer); }
public T GetVar() { return(pvar.GetVar()); }