public void Setup(Player currentPlayer, ViewPlayerList currentPlayerList) { player = currentPlayer; Name.text = player.name; playerList = currentPlayerList; }
private async void Test() { rconModel = new RconModel(Dispatcher); rconModel.Connect(); this.DataContext = rconModel; // Register all views so they can hook up to events ViewChatWindow.Register(rconModel); ViewCommandConsole.Register(rconModel); ViewDebugDataModel.Register(rconModel); ViewDebugLog.Register(rconModel); ViewPlayerList.Register(rconModel); }