Esempio n. 1
0
        public MainWindow()
        {
            InitializeComponent();

            hourses.Add(Zero);
            hourses.Add(Rain);
            hourses.Add(Sun);

            Zero.Init(TimeSpan.FromSeconds(10));
            Rain.Init(TimeSpan.FromSeconds(9));
            Sun.Init(TimeSpan.FromSeconds(11));

            dT.Tick += new EventHandler(dT_Tick);

            dT.Interval = new TimeSpan(0, 0, 0, 0, 1);
        }
 public void InitData(WeatherGlobalPropertyData data)
 {
     m_data = data;
     Rain.Init(m_data.RainIntensity);
     Snow.Init(m_data.SnowIntensity);
 }