private void BindGrid()
 {
     try
     {
         dataSource = channel.GetDeviceStatusHistories(this.StartTime, this.EndTime);
     }
     catch (System.Exception ex)
     {
         logger.LogException(LogLevel.Info, string.Format("WindowDeviceStatus.BindGrid"), ex);
     }
     Dispatcher.BeginInvoke(new Action(BindGridUI));
 }