Beispiel #1
0
        public void CheckSationIndicator(int regionDropdownIndex, int stationDropdownIndex)
        {
            string indicator = StationImageResolver.SetIndicator(regionDropdownIndex, stationDropdownIndex);

            if (!string.IsNullOrEmpty(indicator))
            {
                singleIndicatorLayer.SetResourceReference(Image.SourceProperty, indicator);
            }
        }
Beispiel #2
0
        public void ChangeImages(int regionDropdownIndex, int stationDropdownIndex)
        {
            allIndicatorsLayer.SetResourceReference(Image.SourceProperty, "empty");
            singleIndicatorLayer.SetResourceReference(Image.SourceProperty, "empty");
            string inverted = invertCheckbox.IsChecked == true ? "_inv" : String.Empty;

            string[] newMapLayers = StationImageResolver.GetMap(regionDropdownIndex);
            mapRootLayer.SetResourceReference(Image.SourceProperty, newMapLayers[0] + inverted);
            CheckIndicatorLayers(newMapLayers, regionDropdownIndex, stationDropdownIndex);
        }