| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -43,6 +43,7 @@ namespace StartServerWPF.Modules.MseedChart.ViewModels
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            loopCallback = new MseedReal2asciiApi.LoopCallbackHandler(Mseed2AsciiEvent);
 | 
					 | 
					 | 
					 | 
					            loopCallback = new MseedReal2asciiApi.LoopCallbackHandler(Mseed2AsciiEvent);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            MseedReal2asciiApi.MseedDatasCallFun(loopCallback);
 | 
					 | 
					 | 
					 | 
					            MseedReal2asciiApi.MseedDatasCallFun(loopCallback);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            GC.KeepAlive(loopCallback);
 | 
					 | 
					 | 
					 | 
					            GC.KeepAlive(loopCallback);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            this._dialogService = dialogService;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            workarea = workareaModel;
 | 
					 | 
					 | 
					 | 
					            workarea = workareaModel;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            _wavesModel = new WavesModel();
 | 
					 | 
					 | 
					 | 
					            _wavesModel = new WavesModel();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            CreateChart();
 | 
					 | 
					 | 
					 | 
					            CreateChart();
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -62,7 +63,6 @@ namespace StartServerWPF.Modules.MseedChart.ViewModels
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                StartChart();
 | 
					 | 
					 | 
					 | 
					                StartChart();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                Sure();
 | 
					 | 
					 | 
					 | 
					                Sure();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            }
 | 
					 | 
					 | 
					 | 
					            }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            this._dialogService = dialogService;
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        }
 | 
					 | 
					 | 
					 | 
					        }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        #region 字段
 | 
					 | 
					 | 
					 | 
					        #region 字段
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -278,6 +278,7 @@ namespace StartServerWPF.Modules.MseedChart.ViewModels
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        public DelegateCommand<object> OtimeSortCommand => new DelegateCommand<object>(OtimeSort);
 | 
					 | 
					 | 
					 | 
					        public DelegateCommand<object> OtimeSortCommand => new DelegateCommand<object>(OtimeSort);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        public DelegateCommand IntervalSureCommand => new DelegateCommand(IntervalSure);
 | 
					 | 
					 | 
					 | 
					        public DelegateCommand IntervalSureCommand => new DelegateCommand(IntervalSure);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        public DelegateCommand<object> RealTimeDataCommand => new DelegateCommand<object>(RealTimeData);
 | 
					 | 
					 | 
					 | 
					        public DelegateCommand<object> RealTimeDataCommand => new DelegateCommand<object>(RealTimeData);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        public DelegateCommand ReSetCommand => new DelegateCommand(Reset);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        private void Loaded()
 | 
					 | 
					 | 
					 | 
					        private void Loaded()
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        {
 | 
					 | 
					 | 
					 | 
					        {
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -289,6 +290,27 @@ namespace StartServerWPF.Modules.MseedChart.ViewModels
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          
 | 
					 | 
					 | 
					 | 
					          
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        }
 | 
					 | 
					 | 
					 | 
					        }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        private void Reset()
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            _wavesModel = new WavesModel();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            CreateChart();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            if (workarea.StationConfig.Stations != null)
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                List<string> devicesNums = new List<string>();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                foreach (var item in workarea.StationConfig.Stations)
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                    if (item.IsEnable)
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                    {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                        devicesNums.Add(item.Name);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                    }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                devicesNums.Sort();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                smList = _wavesModel.ReadWavesFromJson(devicesNums.ToArray());
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                subNameList = new Dictionary<string, ASCiiData>();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                StartChart();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                Sure();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        private void Sure()
 | 
					 | 
					 | 
					 | 
					        private void Sure()
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        {
 | 
					 | 
					 | 
					 | 
					        {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            if (_lChartAll != null)
 | 
					 | 
					 | 
					 | 
					            if (_lChartAll != null)
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -569,8 +591,8 @@ namespace StartServerWPF.Modules.MseedChart.ViewModels
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                    string mes = System.Text.Encoding.Default.GetString(message);
 | 
					 | 
					 | 
					 | 
					                                    string mes = System.Text.Encoding.Default.GetString(message);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                    byte[] data = message.Skip(15).ToArray();
 | 
					 | 
					 | 
					 | 
					                                    byte[] data = message.Skip(15).ToArray();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                    string mes1 = System.Text.Encoding.Default.GetString(data);
 | 
					 | 
					 | 
					 | 
					                                    string mes1 = System.Text.Encoding.Default.GetString(data);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                  // if (message.Length == 7 && System.Text.Encoding.Default.GetString(message) == "shutoff")
 | 
					 | 
					 | 
					 | 
					                                    // if (message.Length == 7 && System.Text.Encoding.Default.GetString(message) == "shutoff")
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                  if(!IsEnableStopRealtime)
 | 
					 | 
					 | 
					 | 
					                                    if (!IsEnableStopRealtime)
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                    {
 | 
					 | 
					 | 
					 | 
					                                    {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                        iRedisSubscription.UnSubscribeFromChannels(subNameList.Keys.ToArray());
 | 
					 | 
					 | 
					 | 
					                                        iRedisSubscription.UnSubscribeFromChannels(subNameList.Keys.ToArray());
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                    }
 | 
					 | 
					 | 
					 | 
					                                    }
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -590,6 +612,11 @@ namespace StartServerWPF.Modules.MseedChart.ViewModels
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                _lChartAll.EndUpdate();
 | 
					 | 
					 | 
					 | 
					                _lChartAll.EndUpdate();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            }
 | 
					 | 
					 | 
					 | 
					            }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            else
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                IsEnableStartRealtime = true;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                IsEnableStopRealtime = false;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        }
 | 
					 | 
					 | 
					 | 
					        }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        private void Mseed2AsciiEvent(AsciiDataStruct asciiData)
 | 
					 | 
					 | 
					 | 
					        private void Mseed2AsciiEvent(AsciiDataStruct asciiData)
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
 
 |