/*-------------------------------输入---------------------------------------------------*/ public static void ButtonText(string buttonName, string text, int jianGe, ref bool isShow, Action action, Action action2 = null) { bool tmp = isShow; MyCreate.Box(() => { MyCreate.Heng(() => { MyCreate.Button(buttonName, jianGe - 10, () => { tmp = !tmp; }); MyCreate.AddSpace(10); MyCreate.Shu(() => { MyCreate.AddSpace(6); MyCreate.TextButton(text, () => { tmp = !tmp; }); }); }); if (tmp && null != action) { action(); } if (null != action2) { action2(); } }); isShow = tmp; }
public override void Show(ZuHeTool tool, string searchInput) { if (!string.IsNullOrEmpty(searchInput)) { string input = searchInput.ToLower(); if (Text1.ToLower().Contains(input) || Text2.Contains(input)) { MyCreate.Box(() => { tool.TextText_OY(Text1, Text2); }); } } else { tool.TextText_BL(Text1, Text2); } }