public MainWindows(int refreshMillis, List <MainWindowsDelegate> clients, IWindowStuff ws) { this.refreshMillis = refreshMillis; this.clients = clients; _timer = new System.Threading.Timer(timetimer, "Timer", 0, refreshMillis); _ws = ws; }
public void setWindowStuff(IWindowStuff ws) //called from "outside-thread" { if (_busy) { throw new Exception("Can't change windows while busy."); } //lock (ws) { _ws = ws; } }