public static void TextButton2(string str1, string buttonText, int jianGe, Action onClick, ref bool isShow, Action showAction) { JianTuoText2(" " + str1, jianGe, ref isShow, showAction, () => { MyCreate.Button(buttonText, onClick); }); }
public static void TextButton(string str1, string buttonText, int jianGe, Action onClick, ref bool isShow, Action showAction, MyEnumColor color) { JianTuoText(str1, jianGe, ref isShow, color, showAction, () => { MyCreate.Button(buttonText, onClick); }); }
/*-------------------------------输入---------------------------------------------------*/ 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 static void TextButton(string str1, string buttonText, int jianGe, Action onClick) { MyCreate.Heng(() => { MyCreate.Text(" " + str1, jianGe); MyCreate.Button(buttonText, onClick); }); }
public static string StringButton(string value, int jianGe, string buutonName, Action action) { string tmp = value; MyCreate.Heng(() => { MyCreate.Shu(() => { MyCreate.AddSpace(4); tmp = MyCreate.InputString(tmp, jianGe); }); if (!string.IsNullOrEmpty(tmp)) { MyCreate.Button(" " + buutonName + " ", action); } MyCreate.AddSpace(); }); return(tmp); }