BigRedButtonOfDeath.Android.Activity1.GetShipSelection C# (CSharp) Method

GetShipSelection() public method

public GetShipSelection ( ArtemisComm shipList ) : void
shipList ArtemisComm
return void
        public void GetShipSelection(ArtemisComm.PlayerShip[] shipList)
        {
            
            RadioGroup grp = FindViewById<RadioGroup>(Resource.Id.radioGroup1);
            grp.RemoveAllViews();
            int id = 1000;
            foreach (ArtemisComm.PlayerShip ship in shipList)
            {
                RadioButton rad = new RadioButton(this);
                rad.Text = ship.Name.Value;
                rad.Id = id++;
                grp.AddView(rad);   
            }
            SetContentView(Resource.Layout.ShipSelect);
            Button button = FindViewById<Button>(Resource.Id.btnSelectShip);
            button.Click += Select_Click;

        }