Example #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
        }
Example #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);
        }
Example #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);
        }