public PlayerNameWindow() { InitializeComponent(); playersInfo = new PlayersInfo(); this.DataContext = playersInfo; PlayersInfo.NameOfPlayer2 = "Computer"; }
public static bool Verify(PlayersInfo playersInfo) { bool result = true; if (playersInfo.NameOfPlayer1.Trim() == string.Empty || playersInfo.NameOfPlayer2.Trim() == string.Empty || playersInfo.NameOfPlayer1.Trim().Length > 20 || playersInfo.NameOfPlayer2.Trim().Length > 20) result = false; return result; }
public PlayersNameWindow() { InitializeComponent(); playersInfo = new PlayersInfo(); this.DataContext = playersInfo; }