コード例 #1
0
        private static void AddGridSpot(string letter, int number, PlayerInfoModel model)
        {
            GridSpotModel spot = new GridSpotModel();

            spot.SpotLetter = letter;
            spot.SpotNumber = number;
            spot.Status     = GridSpotStatus.Empty;

            model.ShotGrid.Add(spot); // Adding spot object to a ShotGrid
        }
コード例 #2
0
        private static void AddGridSpot(PlayerInfoModel model, string letter, int number)
        {
            GridSpotModel spot = new GridSpotModel();

            spot.SpotLetter = letter;
            spot.SpotNumber = number;
            spot.Status     = GridSpotStatus.Empty;

            model.ShotGrid.Add(spot);
        }
コード例 #3
0
        private static void AddGridSpot(PlayerInfoModel model, string letter, int number)
        {
            var spot = new GridSpotModel
            {
                SpotLetter = letter,
                SpotNumber = number,
                Status     = GridSpotStatus.Empty
            };

            model.ShotGrid.Add(spot);
        }