public MultiplayerWindow(string gameName) { InitializeComponent(); myPosition = new Position(0, 0); otherPosition = new Position(0, 0); this.name = gameName; int port = Properties.Settings.Default.ServerPort; string ip = Properties.Settings.Default.ServerIP; vm = new MultiplayerVM(this.name, port, ip); vm.Join(gameName); DataContext = vm; }