Example #1
0
        public IToolbar AddMenu(string name, Action <string> onMenuSelected = null)
        {
            MenuNames.Add(name);
            if (onMenuSelected == null)
            {
                MenuSelected.Add((item) => { });
            }
            else
            {
                MenuSelected.Add(onMenuSelected);
            }

            return(this);
        }
Example #2
0
 public ToolbarView AddMenu(string name, Action <string> onMenuSelected)
 {
     MenuNames.Add(name);
     MenuSelected.Add(onMenuSelected);
     return(this);
 }