private void LoadShipModels() { shipModels = new List <ShipModel>(); List <ShipModel> tModels = ShipModel.GetModelList(); foreach (var model in tModels) { if (model.BaseStructureHp > 0) { shipModels.Add(model); } } }
private void FillSaModule() { //Spaceship models combo comboSaShip.Items.Clear(); List <ShipModel> models = ShipModel.GetModelList(); foreach (ShipModel model in models) { comboSaShip.Items.Add(model); } //Officer type combo comboSaOfficers.Items.Clear(); List <CrewOfficerType> tOff = CrewOfficerType.GetTypeList(); foreach (CrewOfficerType curType in tOff) { comboSaOfficers.Items.Add(curType); } }