| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -336,7 +336,7 @@ namespace Txgy.FilesWatcher.ViewModels
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                //设置监听文件类型
 | 
					 | 
					 | 
					 | 
					                //设置监听文件类型
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                watcher.Filter = fileFilter;
 | 
					 | 
					 | 
					 | 
					                watcher.Filter = fileFilter;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                //设置是否监听子目录
 | 
					 | 
					 | 
					 | 
					                //设置是否监听子目录
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                watcher.IncludeSubdirectories = false;
 | 
					 | 
					 | 
					 | 
					                watcher.IncludeSubdirectories = true;
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                //设置是否启用监听
 | 
					 | 
					 | 
					 | 
					                //设置是否启用监听
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                watcher.EnableRaisingEvents = false;
 | 
					 | 
					 | 
					 | 
					                watcher.EnableRaisingEvents = false;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                watcher.EndInit();
 | 
					 | 
					 | 
					 | 
					                watcher.EndInit();
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -422,11 +422,13 @@ namespace Txgy.FilesWatcher.ViewModels
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            {
 | 
					 | 
					 | 
					 | 
					            {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                if (IsEnableRaising)
 | 
					 | 
					 | 
					 | 
					                if (IsEnableRaising)
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                {
 | 
					 | 
					 | 
					 | 
					                {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    watcherArray[0].Path = Path.Combine(MainPath, RealtimePath);
 | 
					 | 
					 | 
					 | 
					                    if (IsUploadRealtimePath)
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    watcherArray[1].Path = Path.Combine(MainPath, PostPath);
 | 
					 | 
					 | 
					 | 
					                        watcherArray[0].Path = Path.Combine(MainPath, RealtimePath);
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                    if (IsUploadPostPath)
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                        watcherArray[1].Path = Path.Combine(MainPath, PostPath);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                }
 | 
					 | 
					 | 
					 | 
					                }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                watcherArray[0].EnableRaisingEvents = IsEnableRaising;
 | 
					 | 
					 | 
					 | 
					                watcherArray[0].EnableRaisingEvents =IsUploadRealtimePath;
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                watcherArray[1].EnableRaisingEvents = IsEnableRaising;
 | 
					 | 
					 | 
					 | 
					                watcherArray[1].EnableRaisingEvents = IsUploadPostPath;
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                IsIndeterminate = IsEnableRaising;
 | 
					 | 
					 | 
					 | 
					                IsIndeterminate = IsEnableRaising;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            }
 | 
					 | 
					 | 
					 | 
					            }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            catch (Exception ex)
 | 
					 | 
					 | 
					 | 
					            catch (Exception ex)
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
 
 |