예제 #1
0
 public PlayerNameWindow()
 {
     InitializeComponent();
     playersInfo = new PlayersInfo();
     this.DataContext = playersInfo;
     PlayersInfo.NameOfPlayer2 = "Computer";
 }
예제 #2
0
파일: PlayersInfo.cs 프로젝트: ZuTa/Othello
        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;
        }
예제 #3
0
 public PlayersNameWindow()
 {
     InitializeComponent();
     playersInfo = new PlayersInfo();
     this.DataContext = playersInfo;
 }