示例#1
0
 public Manager(ListBox reading, ListBox average, ListBox cast)
 {
     temp = new TempMointer();
     hum = new HumidityMointor();
     pre = new PreMointor();
     readingob = new ReadingObserver(reading);
     avgob = new AvgReading(average);
     fc = new ForecastObserver(cast);
     readingob.Register(temp);
     avgob.Register(temp);
     fc.Register(temp);
     readingob.Register(hum);
     avgob.Register(hum);
     fc.Register(hum);
     readingob.Register(pre);
     avgob.Register(pre);
     fc.Register(pre);
 }
示例#2
0
 public Manager(ListBox reading, ListBox average, ListBox cast)
 {
     temp      = new TempMointer();
     hum       = new HumidityMointor();
     pre       = new PreMointor();
     readingob = new ReadingObserver(reading);
     avgob     = new AvgReading(average);
     fc        = new ForecastObserver(cast);
     readingob.Register(temp);
     avgob.Register(temp);
     fc.Register(temp);
     readingob.Register(hum);
     avgob.Register(hum);
     fc.Register(hum);
     readingob.Register(pre);
     avgob.Register(pre);
     fc.Register(pre);
 }