private void InitTimer() { timer = new DispatcherTimer(); timer.Interval = TimeSpan.FromSeconds(HUBTILE_INTERVAL); timer.Tick += new EventHandler(Timer_Tick); timer.Start(); }