public ActionItem(BaseAction action, bool showLabel) { if (action == null) throw new ArgumentNullException("action", "Action cannot be null for an action item"); this.Action = action; this.ShowLabel = showLabel; }
public ActionItem(BaseAction action) : this(action, false) { }