844184169 3 weeks ago
parent
commit
6e460be5bf
2 changed files with 4 additions and 2 deletions
  1. 3 1
      LocalhostMES/App.xaml.cs
  2. 1 1
      LocalhostMES/ViewModels/Tabs/TcpServerViewModel.cs

+ 3 - 1
LocalhostMES/App.xaml.cs

@@ -54,7 +54,9 @@ namespace LocalhostMES
                 var systemSettingsViewModel = Container.Resolve<SystemSettingsViewModel>();
                 systemSettingsViewModel.SaveSettings();
                 systemSettingsViewModel.StartService();
-                Process.Start(@"C:\Windows\System32\notepad.exe")
+
+                Container.Resolve<SystemSettingsViewModel>().StartService();
+                Process.Start(@"D:\HANS LASER\TeamAAS-VP.exe");
             }
             catch (Exception ex)
             {

+ 1 - 1
LocalhostMES/ViewModels/Tabs/TcpServerViewModel.cs

@@ -79,7 +79,7 @@ namespace LocalhostMES.ViewModels.Tabs
         public DelegateCommand SendMessageCommand =>
             _sendMessageCommand ?? (_sendMessageCommand = new DelegateCommand(async () => await SendMessageAsync()));
 
-        private async Task StartServerAsync()
+        public async Task StartServerAsync()
         {
             if (ServerPort < 1 || ServerPort > 65535)
             {