| | |
| | | { |
| | | public partial class PublicAssmebly |
| | | { |
| | | public Button btnTip; |
| | | |
| | | public int entryMaxLength = 40; |
| | | //public Action entrylistener; |
| | | |
| | | void EditParaterEvent(Button btnConfirm, int errorId_IsNullOrEmpty, int errorId_ContainsPar, List<string> list, EditText editText, Action<string> callBackAction, |
| | | FrameLayout contentView, Button btnLine, Button btnCancel, FrameLayout editView, Dialog dialog, int titleId) |
| | | { |
| | | |
| | | var btnTip = new Button() |
| | | btnTip = new Button() |
| | | { |
| | | X = editView.X, |
| | | Y = editView.Bottom, |
| | |
| | | |
| | | etParater.TextChangeEventHandler = (sender, e) => |
| | | { |
| | | if (etParater.Text.Length > 20) |
| | | if (System.Text.Encoding.Default.GetBytes(etParater.Text).Length > entryMaxLength) |
| | | { |
| | | etParater.Text = etParater.Text.Remove(20); |
| | | |
| | | #if __ANDROID__ |
| | | etParater.SetSelectionEnd(); |
| | | #endif |
| | | //entrylistener?.Invoke(); |
| | | } |
| | | }; |
| | | |