Skip to content

Theme In der Höhe

lukmay edited this page Dec 16, 2023 · 2 revisions

If an accommodation has a altitude above 1000, the theme "In der Höhe" is added to the ThemeIds.


Code:

Is implemented here.

var altitude = myacco.Altitude;

if (altitude != null)
{
    int altitudeint = Convert.ToInt32(altitude);

    if (altitudeint > 1000)
    {
        myacco.ThemeIds.Add("In der Höhe");
    }
}
Clone this wiki locally