public static LibFuncLayoutBlock BuildButton(IList <FunButton> buttons) { LibFuncLayoutBlock block = new LibFuncLayoutBlock(); block.Buttons = buttons; return(block); }
public static Dictionary <string, string> GetButtonList(LibLayoutBlock buttonRange) { Dictionary <string, string> ret = null; if (buttonRange != null) { LibFuncLayoutBlock block = buttonRange as LibFuncLayoutBlock; if (block != null && block.Buttons.Count > 0) { ret = new Dictionary <string, string>(); foreach (var item in block.Buttons) { FindButton(item, ret); } } } return(ret); }