public IToolbar AddMenu(string name, Action <string> onMenuSelected = null) { MenuNames.Add(name); if (onMenuSelected == null) { MenuSelected.Add((item) => { }); } else { MenuSelected.Add(onMenuSelected); } return(this); }
public ToolbarView AddMenu(string name, Action <string> onMenuSelected) { MenuNames.Add(name); MenuSelected.Add(onMenuSelected); return(this); }