public bool RefreshData(ProcessPattern pattern)
 {
     process = new DataProcess(pattern);
     if (running == false)
     {
         running = !running;
     }
     //if (queryAlarmInfo() && queryOnOffRecord() && queryTmpAndMoist())
     if (queryOnOffRecord() && queryTmpAndMoist())
     {
         data.CalculateSize();
         return(true);
     }
     else
     {
         return(false);
     }
 }
 public void SetProcessPattern(ProcessPattern pattern)
 {
     _processPattern = pattern;
 }
 public DataProcess(ProcessPattern pattern)
 {
     _processPattern = pattern;
 }