mainView is now binded
This commit is contained in:
@@ -9,7 +9,7 @@ namespace ClientApp.ViewModels
|
||||
{
|
||||
public ICommand RetryServerCommand { get; set; }
|
||||
public ICommand RetryVREngineCommand { get; set; }
|
||||
public MainWindowViewModel MainWindowViewModel;
|
||||
public MainWindowViewModel MainWindowViewModel { get; set; }
|
||||
|
||||
|
||||
public MainViewModel(MainWindowViewModel mainWindowViewModel)
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
<StackPanel Grid.Column="0" Grid.Row="0" Orientation="Horizontal" Margin="10">
|
||||
<Label Content="Connected to server:"/>
|
||||
<Label Content="{Binding Path=MainWindowViewModel.InfoModel.ConnectedToServer}"/>
|
||||
<Label Content="true"/>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Grid.Column="1" Grid.Row="0" Orientation="Horizontal" Margin="10">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Client;
|
||||
using ClientApp.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO.Pipes;
|
||||
@@ -31,7 +31,7 @@ namespace Server
|
||||
|
||||
private void OnConnect(IAsyncResult ar)
|
||||
{
|
||||
|
||||
|
||||
var tcpClient = listener.EndAcceptTcpClient(ar);
|
||||
Console.WriteLine($"Client connected from {tcpClient.Client.RemoteEndPoint}");
|
||||
clients.Add(new Client(this, tcpClient));
|
||||
|
||||
Reference in New Issue
Block a user