public MainWindow() { InitializeComponent(); var gamehost = new GameHostService(); _ = gamehost.Start(); DataContext = gamehost; }
public MainWindow() { InitializeComponent(); DataContext = new GameHostService(); }