[ADDED] the inlog screen and a data singleton for the client

This commit is contained in:
Lars
2020-10-20 16:36:34 +02:00
parent 55425bbec4
commit 84bf1b3e64
9 changed files with 142 additions and 9 deletions

View File

@@ -18,7 +18,7 @@ namespace Client.Views
/// </summary>
public partial class GameWindow : Window
{
ClientData data = ClientData.Instance;
public GameWindow()
{
DataContext = new ViewModelGame();
@@ -110,7 +110,7 @@ namespace Client.Views
*/
private void WriteToChat(string message)
{
string user = "Monkey";
string user = data.User.Username;
SentMessage.AppendText($"{user}: {message}\n");
}
}