Esempio n. 1
0
        private void RenderActions()
        {
            var actions = RuleManager.GetActions(Parameter).OrderBy(descriptor => descriptor.Attribute.Category).ThenBy(descriptor => descriptor.Attribute.DisplayText);

            string category = null;

            foreach (var action in actions)
            {
                if (category != action.Attribute.Category)
                {
                    category = action.Attribute.Category;
                    Actions.Items.Add(GetCategory(category));
                }

                Actions.Items.Add(GetListBoxItem(action.Attribute.DisplayText, action));
            }
        }