예제 #1
0
 public ForecastDisplay(IObservebel observebel)
 {
     this.observebel = observebel;
     Closing        += ForcastDisplayDisplay_Closing;
     InitializeComponent();
     ccCb.IsChecked = true;
     observebel.Subscribe(this);
 }
 public StatistcsDisplay(IObservebel observebel)
 {
     statistcsDisplay            = new StatisticsDisplay(observebel);
     statistcsDisplay.ShowEvent += updateShow;
     Closing += statistcsDisplay_Closing;
     InitializeComponent();
     ccCb.IsChecked = true;
     statistcsDisplay.observebel.Subscribe(statistcsDisplay);
 }
 public CurrentConditions(IObservebel observebel)
 {
     currentCondition            = new CuurentConditionsDisplay(observebel);
     currentCondition.ShowEvent += updateShow;
     Closing += CurrentConditions_Closing;
     InitializeComponent();
     ccCb.IsChecked = true;
     currentCondition.observebel.Subscribe(currentCondition);
 }
 public CuurentConditionsDisplay(IObservebel observebel)
 {
     this.observebel = observebel;
     whetherData     = new WhetherData();
 }
 public StatisticsDisplay(IObservebel observebel)
 {
     this.observebel = observebel;
     whetherData     = new WhetherData();
     history         = new Dictionary <DateTime, WhetherData>();
 }