Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 public void setWindowStuff(IWindowStuff ws)  //called from "outside-thread"
 {
     if (_busy)
     {
         throw new Exception("Can't change windows while busy.");
     }
     //lock (ws)
     {
         _ws = ws;
     }
 }