Example #1
0
 private void Add(CodeBaseActionProxy action, CategoryType categoryType)
 {
     Category category;
     if(_categoriesByType.ContainsKey(categoryType))
         category = _categoriesByType[categoryType];
     else {
         category = new Category(categoryType);
         _categoriesByType[categoryType] = category;
     }
     category.Items.Add(action);
 }
Example #2
0
        private void Add(CodeBaseActionProxy action, CategoryType categoryType)
        {
            Category category;

            if (_categoriesByType.ContainsKey(categoryType))
            {
                category = _categoriesByType[categoryType];
            }
            else
            {
                category = new Category(categoryType);
                _categoriesByType[categoryType] = category;
            }
            category.Items.Add(action);
        }
Example #3
0
 public ActionResults(CodeBaseActionProxy action, IList<Hit> hits)
 {
     _action = action;
     _hits = hits;
 }
Example #4
0
 private ActionNode CreateActionNode(CodeBaseActionProxy action)
 {
     Block block = delegate {
         CodeBase codeBase = _codeBase;
         RunBackground(delegate
         {
             IList<Hit> hits = action.Execute(codeBase);
             return new ActionResults(action, hits);
         });
     };
     return new ActionNode(action.Name, action.Description, block);
 }