public void AddField(FieldInfo fInfo) { Game currGame = null; foreach (Game item in Games) { if (item.gameInfo.gameID == fInfo.gameID) { currGame = item; break; } } if (currGame.gameInfo.user1.UserNumber == fInfo.user.UserNumber) { currGame.SetGField1(new GameField(fInfo.field)); } else { currGame.SetGField2(new GameField(fInfo.field)); } if (currGame.CheckState()) { byte[] sendData = SerializationUtils.Serialization( MessTypeUtil.MessageTypes[(int)MessTypeUtil.TypeMEnum.Start], currGame.gameInfo.currentUser); SendToUser(currGame.gameInfo.user1, sendData); SendToUser(currGame.gameInfo.user2, sendData); } }