Ejemplo n.º 1
0
        public static string GetCaveDistrictStringByID(int id)
        {
            CaveDistrictModel c = kuchaContainer.CaveDistricts.Find(x => x.districtID == id);

            if (c == null)
            {
                return(String.Empty);
            }
            return(c.name);
        }
Ejemplo n.º 2
0
            public CaveDistrictGrid(CaveDistrictModel caveDistrictModel, bool enabled)
            {
                this.caveDistrictModel = caveDistrictModel;
                Label nameLabel = new Label
                {
                    Text = caveDistrictModel.name
                };

                Children.Add(nameLabel, 0, 0);

                Switch enabledSwitch = new Switch
                {
                    IsToggled = enabled
                };

                Children.Add(enabledSwitch, 1, 0);
            }