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); } }
void OnMenuSelectionChanged(object sender, OptionEventArgs e) { UpdateBaseLayer(e.Section, e.Option.Value); }