void HideSteps() { foreach (var step in steps) { step.ActivateElement(ActivateMessage.Hide()); } }
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 Enable(MenuElement page, bool enable) { page.ActivateElement(enable? ActivateMessage.Activate() : ActivateMessage.Hide()); }