| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -33,7 +33,7 @@ using log4net;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					namespace Txgy.FilesWatcher.ViewModels
 | 
					 | 
					 | 
					 | 
					namespace Txgy.FilesWatcher.ViewModels
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					{
 | 
					 | 
					 | 
					 | 
					{
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    internal class MainViewModel : BindableBase
 | 
					 | 
					 | 
					 | 
					    public class MainViewModel : BindableBase
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    {
 | 
					 | 
					 | 
					 | 
					    {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        public MainViewModel(WebsocketClient websocketClient, SystemConfig systemConfig, IEventAggregator ea, IDialogService dialogService, ManualModeDialogViewModel manualModeDialog)
 | 
					 | 
					 | 
					 | 
					        public MainViewModel(WebsocketClient websocketClient, SystemConfig systemConfig, IEventAggregator ea, IDialogService dialogService, ManualModeDialogViewModel manualModeDialog)
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        {
 | 
					 | 
					 | 
					 | 
					        {
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -58,6 +58,7 @@ namespace Txgy.FilesWatcher.ViewModels
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            this._ea = ea;
 | 
					 | 
					 | 
					 | 
					            this._ea = ea;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            this._dialogService = dialogService;
 | 
					 | 
					 | 
					 | 
					            this._dialogService = dialogService;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            this._manualModeDialog = manualModeDialog;
 | 
					 | 
					 | 
					 | 
					            this._manualModeDialog = manualModeDialog;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            _manualModeDialog.mainModel = this;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        }
 | 
					 | 
					 | 
					 | 
					        }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        private GetLogger _log;
 | 
					 | 
					 | 
					 | 
					        private GetLogger _log;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        private string watcherPath;
 | 
					 | 
					 | 
					 | 
					        private string watcherPath;
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -202,7 +203,7 @@ namespace Txgy.FilesWatcher.ViewModels
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            get { return selectedIndex; }
 | 
					 | 
					 | 
					 | 
					            get { return selectedIndex; }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            set { SetProperty(ref selectedIndex, value); }
 | 
					 | 
					 | 
					 | 
					            set { SetProperty(ref selectedIndex, value); }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        }
 | 
					 | 
					 | 
					 | 
					        }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        private int proMonInterval = 30;
 | 
					 | 
					 | 
					 | 
					        private int proMonInterval = 5;
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        public int ProMonInterval
 | 
					 | 
					 | 
					 | 
					        public int ProMonInterval
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        {
 | 
					 | 
					 | 
					 | 
					        {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            get => proMonInterval;
 | 
					 | 
					 | 
					 | 
					            get => proMonInterval;
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -503,11 +504,11 @@ namespace Txgy.FilesWatcher.ViewModels
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            DateTime currentT=  DateTime.Now;
 | 
					 | 
					 | 
					 | 
					            DateTime currentT=  DateTime.Now;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            RunTime = DateDiff(currentT, StartTime);
 | 
					 | 
					 | 
					 | 
					            RunTime = DateDiff(currentT, StartTime);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            // path = "I:\\yuwuN3102mseed\\NET2023\\06\\22\\21\\51";
 | 
					 | 
					 | 
					 | 
					            // path = "I:\\yuwuN3102mseed\\NET2023\\06\\22\\21\\51";
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            if ((currentT - mseedFileTime).TotalHours >= CycleTime)
 | 
					 | 
					 | 
					 | 
					            if ((currentT - mseedFileTime).TotalSeconds >= 15)
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            {
 | 
					 | 
					 | 
					 | 
					            {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                mseedFileTime = DateTime.Now;
 | 
					 | 
					 | 
					 | 
					                mseedFileTime = DateTime.Now;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                DateTime start= DateTime.Now.AddDays(-3);
 | 
					 | 
					 | 
					 | 
					                //DateTime end= DateTime.Now.AddDays(-3);
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                _manualModeDialog.StartHandle(start, start.AddDays(-4));
 | 
					 | 
					 | 
					 | 
					                _manualModeDialog.StartHandle(mseedFileTime.AddDays(-4), mseedFileTime);
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            }
 | 
					 | 
					 | 
					 | 
					            }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            else
 | 
					 | 
					 | 
					 | 
					            else
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            {
 | 
					 | 
					 | 
					 | 
					            {
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
 
 |