void OnOptionTap(object sender, OptionEventArgs e)
        {
            BaseMapSectionLabel option = e.Option;

            if (e.Section.Type == SectionType.Language)
            {
                if (currentLanguage != null)
                {
                    currentLanguage.Normalize();
                }

                option.Highlight();

                currentLanguage = option;
            }
            else
            {
                if (current != null)
                {
                    current.Normalize();
                }

                option.Highlight();

                current = option;
            }

            if (OptionTapped != null)
            {
                OptionTapped(null, e);
            }
        }
Exemplo n.º 2
0
 void OnMenuSelectionChanged(object sender, OptionEventArgs e)
 {
     UpdateBaseLayer(e.Section, e.Option.Value);
 }
 void OnMenuSelectionChanged(object sender, OptionEventArgs e)
 {
     UpdateBaseLayer(e.Section, e.Option.Value);
 }
        void OnOptionTap(object sender, OptionEventArgs e)
        {
            BaseMapSectionLabel option = e.Option;

            if (e.Section.Type == SectionType.Language)
            {
                if (currentLanguage != null)
                {
                    currentLanguage.Normalize();
                }

                option.Highlight();

                currentLanguage = option;
            }
            else
            {
                if (current != null)
                {
                    current.Normalize();
                }

                option.Highlight();

                current = option;
            }

            if (OptionTapped != null)
            {
                OptionTapped(null, e);
            }
        }