| | |
| | | { |
| | | public Button btnTip; |
| | | |
| | | public int entryMaxLength = 40; |
| | | public int entryMaxLength = 20; |
| | | //public Action entrylistener; |
| | | |
| | | void EditParaterEvent(Button btnConfirm, int errorId_IsNullOrEmpty, int errorId_ContainsPar, List<string> list, EditText editText, Action<string> callBackAction, |
| | |
| | | |
| | | etParater.TextChangeEventHandler = (sender, e) => |
| | | { |
| | | if (System.Text.Encoding.Default.GetBytes(etParater.Text).Length > entryMaxLength) |
| | | if (System.Text.Encoding.UTF8.GetBytes(etParater.Text).Length > entryMaxLength) |
| | | { |
| | | etParater.Text = etParater.Text.Remove(etParater.Text.Length-1); |
| | | |