login working

uuuuggglyyyyyyyyyyyyyy :(
This commit is contained in:
shinichi
2020-10-07 19:45:20 +02:00
parent 7bf5bdb1ce
commit a23b268dc9
6 changed files with 42 additions and 33 deletions

View File

@@ -7,22 +7,23 @@ namespace ClientApp.ViewModels
{
class MainViewModel : ObservableObject
{
public Info infoModel { get; set; }
public ICommand RetryServerCommand { get; set; }
public ICommand RetryVREngineCommand { get; set; }
public MainWindowViewModel MainWindowViewModel;
public MainViewModel()
public MainViewModel(MainWindowViewModel mainWindowViewModel)
{
this.infoModel = new Info();
this.MainWindowViewModel = mainWindowViewModel;
this.RetryServerCommand = new RelayCommand(() =>
{
//try connect server
this.infoModel.ConnectedToServer = true;
this.MainWindowViewModel.infoModel.ConnectedToServer = true;
});
this.RetryVREngineCommand = new RelayCommand(() =>
{
//try connect vr-engine
this.infoModel.ConnectedToVREngine = true;
this.MainWindowViewModel.infoModel.ConnectedToVREngine = true;
});
}
}