| | |
| | | /// <summary> |
| | | /// 大框圆角值 |
| | | /// </summary> |
| | | public int RradiusFrameLayout = 15; |
| | | private int RradiusFrameLayout = 15; |
| | | /// <summary> |
| | | /// 小框圆角值 |
| | | /// </summary> |
| | | public int radiusEditFrameLayout = 4; |
| | | private int radiusEditFrameLayout = 4; |
| | | /// <summary> |
| | | /// 输入框 |
| | | /// </summary> |
| | |
| | | /// <param name="titleId">标题文本</param> |
| | | /// <param name="tnputEditTxet">显示文本</param> |
| | | /// <param name="confirmAction">回调函数</param> |
| | | public void InputBox(int titleId, string tnputEditTxet, Action<string> confirmAction) |
| | | /// <param name="minValue">最小值</param> |
| | | /// <param name="maxValue">最大值</param> |
| | | public void InputBox(int titleId, string tnputEditTxet, Action<string> confirmAction,int minValue=1,int maxValue=100) |
| | | { |
| | | Dialog dialog = new Dialog() |
| | | { |
| | |
| | | } |
| | | else |
| | | { |
| | | var editTextValue = editText.Text.Trim(); |
| | | int intValue = int.Parse(editTextValue); |
| | | if (intValue <= 0 || intValue > 100) |
| | | int intValue = int.Parse(editText.Text.Trim()); |
| | | if (intValue <minValue || intValue > maxValue) |
| | | { |
| | | errorId_IsNullOrEmpty = Language.StringByID(StringId.setvalue); |
| | | errorId_IsNullOrEmpty = Language.StringByID(StringId.setvalue).Replace("1",minValue.ToString()).Replace("000",maxValue.ToString()); |
| | | } |
| | | } |
| | | if (errorId_IsNullOrEmpty!="") |
| | |
| | | btnTip.IsMoreLines = true; |
| | | return; |
| | | } |
| | | |
| | | confirmAction(editText.Text.Trim()); |
| | | string editTextValue= int.Parse(editText.Text.Trim()).ToString(); |
| | | confirmAction(editTextValue); |
| | | dialog.Close(); |
| | | }; |
| | | |
| | |
| | | /// 信息提示窗口,自动关闭 |
| | | /// </summary> |
| | | /// <param name="msg">提示错误文本</param> |
| | | public void FlashingBox(string msg,int time=2) |
| | | public void FlashingBox(string msg, int time = 2) |
| | | { |
| | | new PublicAssmebly().TipMsgAutoClose(msg, false, time*1000); |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | new PublicAssmebly().TipMsgAutoClose(msg, false, time * 1000); |
| | | }); |
| | | } |
| | | |
| | | /// <summary> |