예제 #1
0
    void ShowToStep(MenuElement current)
    {
        bool show = true;

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