added automatic reconnect to vr engine

This commit is contained in:
Sem van der Hoeven
2020-10-14 11:19:39 +02:00
parent 2e5dbeee14
commit ea3afdeda1
2 changed files with 32 additions and 35 deletions

View File

@@ -1,6 +1,7 @@
using ClientApp.Models;
using ClientApp.Utils;
using GalaSoft.MvvmLight.Command;
using System.Diagnostics;
using System.Windows.Input;
namespace ClientApp.ViewModels
@@ -27,10 +28,12 @@ namespace ClientApp.ViewModels
this.RetryVREngineCommand = new RelayCommand(() =>
{
//try connect vr-engine
this.MainWindowViewModel.InfoModel.ConnectedToVREngine = true;
this.MainWindowViewModel.InfoModel.CanConnectToVR = false;
client.engineConnection.CreateConnection();
//this.MainWindowViewModel.InfoModel.ConnectedToVREngine = true;
//this.MainWindowViewModel.InfoModel.CanConnectToVR = false;
//client.engineConnection.CreateConnection();
//retryEngineConnection();
Debug.WriteLine("retry button clicked");
});
}