public static ControlPanelAction GetAction(this ControlPanelActionType type) { var attribute = type.GetType().GetField(type.ToString()).GetCustomAttribute <ControlPanelActionSpecification>(); if (attribute != null) { return(new ControlPanelAction { Glyphicon = attribute.Glyphicon, ActionName = attribute.ActionName }); } return(null); }
public BsControlPanelActionsFactory Remove(ControlPanelActionType actionType) { return Remove(x => x.ActionName == actionType.GetAction().ActionName); }
public BsControlPanelActionsFactory Add(ControlPanelActionType actionType) { return Add(actionType.GetAction()); }
public BsControlPanelActionsFactory Remove(ControlPanelActionType actionType) { return(Remove(x => x.ActionName == actionType.GetAction().ActionName)); }
public BsControlPanelActionsFactory Add(ControlPanelActionType actionType) { return(Add(actionType.GetAction())); }