public MainWindow() { InitializeComponent(); _currentPlayer = "o"; _imageUri = "/images/{0}.png"; _imagePath = "pack://application:,,," + _imageUri; _gridSize = (int)Math.Sqrt(TicTacToe.Children.Count); _socketClient = new SocketClient(this); var defaultServer = SocketHelper.GetDefaultServer(); ServerAddress.Text = defaultServer.Item1.ToString(); ServerPort.Text = defaultServer.Item2.ToString(); }