public SplitButton Generate(TupleList<string, Func<bool>> buttonList, Direction direction = Direction.Down, string imageName = null)
		{
			this.imageName = imageName;

			DynamicDropDownMenu menu = CreateMenu(direction);
			menu.Margin = new BorderDouble();
			Button button = CreateButton(buttonList[0]);

			for (int index = 1; index < buttonList.Count; index++)
			{
				menu.addItem(buttonList[index].Item1, buttonList[index].Item2);
			}

			SplitButton splitButton = new SplitButton(button, menu);

			return splitButton;
		}
        public SplitButton Generate(TupleList <string, Func <bool> > buttonList, Direction direction = Direction.Down, string imageName = null)
        {
            this.imageName = imageName;

            DynamicDropDownMenu menu = CreateMenu(direction);

            menu.Margin = new BorderDouble();
            Button button = CreateButton(buttonList [0]);

            for (int index = 1; index < buttonList.Count; index++)
            {
                menu.addItem(buttonList[index].Item1, buttonList[index].Item2);
            }

            SplitButton splitButton = new SplitButton(button, menu);

            return(splitButton);
        }