void ShowToStep(MenuElement current) { bool show = true; foreach (var step in steps) { step.ActivateElement(show? ActivateMessage.ShowTrail() : ActivateMessage.Hide()); if (step == current) { show = false; } } }
void Select(MenuElement element, bool select) { element.SendMessage("ActivateElement", select? ActivateMessage.Highlight() : ActivateMessage.ShowTrail()); }