private void doAddAction(ControllerActionCollection actions)
            {
                ControllerAction copy = CopySaver.Default.copy <ControllerAction>(action);

                copy.Name = Name;
                actions.add(copy);
            }
Example #2
0
        private void doRunAction(string address)
        {
            ControllerAction action = findAction(address);

            if (action != null)
            {
                ExecutingAction = address;
                action.execute(this);
                ExecutingAction = null;
            }
            else
            {
                Log.Error("Action '{0}' cannot be found.", address);
            }
        }
 public ActionItemTemplate(String typeName, String imageName, String group, ControllerAction action)
     : base(typeName, imageName, group)
 {
     this.action = action;
 }