| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -23,7 +23,7 @@ namespace StartServerWPF.Modules.Main.ViewModels
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					{
 | 
					 | 
					 | 
					 | 
					{
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    public class MainViewModel : BindableBase
 | 
					 | 
					 | 
					 | 
					    public class MainViewModel : BindableBase
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    {
 | 
					 | 
					 | 
					 | 
					    {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        public MainViewModel(IDialogService dialogService)
 | 
					 | 
					 | 
					 | 
					        public MainViewModel(IDialogService dialogService, WebsocketClient websocket)
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        {
 | 
					 | 
					 | 
					 | 
					        {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            Message = "View A from your Prism Module";
 | 
					 | 
					 | 
					 | 
					            Message = "View A from your Prism Module";
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            Console.WriteLine(System.Environment.CurrentDirectory + "\\" + JsonParser.systemConfigPath);
 | 
					 | 
					 | 
					 | 
					            Console.WriteLine(System.Environment.CurrentDirectory + "\\" + JsonParser.systemConfigPath);
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -45,6 +45,8 @@ namespace StartServerWPF.Modules.Main.ViewModels
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            Console.WriteLine(sc.remoteDb.ServerAddress + "\t" + sc.remoteDb.ServerPort
 | 
					 | 
					 | 
					 | 
					            Console.WriteLine(sc.remoteDb.ServerAddress + "\t" + sc.remoteDb.ServerPort
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                + "\t" + sc.remoteDb.UserName + "\t" + sc.remoteDb.Password);
 | 
					 | 
					 | 
					 | 
					                + "\t" + sc.remoteDb.UserName + "\t" + sc.remoteDb.Password);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            this._dialogService = dialogService;
 | 
					 | 
					 | 
					 | 
					            this._dialogService = dialogService;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            this._websocket = websocket;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            _websocket.WebSocketInit();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        }
 | 
					 | 
					 | 
					 | 
					        }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -452,6 +454,7 @@ namespace StartServerWPF.Modules.Main.ViewModels
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        private DispatcherTimer  timer1= new  DispatcherTimer();
 | 
					 | 
					 | 
					 | 
					        private DispatcherTimer  timer1= new  DispatcherTimer();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        private readonly IDialogService _dialogService;
 | 
					 | 
					 | 
					 | 
					        private readonly IDialogService _dialogService;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        private readonly WebsocketClient _websocket;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        public void InitializeParams()
 | 
					 | 
					 | 
					 | 
					        public void InitializeParams()
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        {
 | 
					 | 
					 | 
					 | 
					        {
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -477,6 +480,16 @@ namespace StartServerWPF.Modules.Main.ViewModels
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        /// <returns>进程启动返回值</returns>
 | 
					 | 
					 | 
					 | 
					        /// <returns>进程启动返回值</returns>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        private int StartProcess(ProcessInfo proInfo)
 | 
					 | 
					 | 
					 | 
					        private int StartProcess(ProcessInfo proInfo)
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        {
 | 
					 | 
					 | 
					 | 
					        {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            //using (Process compiler = new Process())
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            //{
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            //    compiler.StartInfo.FileName = proInfo.ProName;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            //    compiler.StartInfo.Arguments = proInfo.ProPath + " -o " + proInfo.ProParams;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            //    compiler.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            //    compiler.Start();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            //    compiler.WaitForExit();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            //}
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            int seInd = ShellExecute(IntPtr.Zero, new StringBuilder("open"), new StringBuilder(proInfo.ProName + ".exe")
 | 
					 | 
					 | 
					 | 
					            int seInd = ShellExecute(IntPtr.Zero, new StringBuilder("open"), new StringBuilder(proInfo.ProName + ".exe")
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                     , new StringBuilder(proInfo.ProParams), new StringBuilder(proInfo.ProPath), proInfo.ShowState);
 | 
					 | 
					 | 
					 | 
					                     , new StringBuilder(proInfo.ProParams), new StringBuilder(proInfo.ProPath), proInfo.ShowState);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            return seInd;
 | 
					 | 
					 | 
					 | 
					            return seInd;
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
 
 |