public static string GetCaveRegionStringByID(int id) { CaveRegionModel c = kuchaContainer.CaveRegions.Find(x => x.regionID == id); if (c == null) { return(String.Empty); } return(c.englishName); }
public CaveRegionGrid(CaveRegionModel caveRegionModel, bool enabled) { this.caveRegionModel = caveRegionModel; Label nameLabel = new Label { Text = caveRegionModel.englishName }; Children.Add(nameLabel, 0, 0); Switch enabledSwitch = new Switch { IsToggled = enabled }; Children.Add(enabledSwitch, 1, 0); }