private void HandleChanged(object sender, EventArgs e) { if (_view != null) { // sometimes unbind events ont working RefreshPlaceholder(); HandleOverlayVisiblity(false, true); _errorSubview.Hidden = true; string old = _text; _text = _view.Text; if (Value != null && !IOSApplicationContext.Busy) { Value.ControlChanged(Text); } if (!_placeholderVisible) { _inputValidator.OnChange(_text, old); } if (OnChange != null) { OnChange.Execute(); } } }
void HandleChanged(object sender, EventArgs e) { HandlePlaceholderVisiblity(); if (this.Value != null && !ApplicationContext.Busy) { this.Value.ControlChanged(this.Text); } if (OnChange != null) { OnChange.Execute(); } }
void HandleEditingChanged(object sender, EventArgs e) { _view.RightViewMode = UITextFieldViewMode.Never; _view.RightView = null; if (Value != null && !ApplicationContext.Busy) { Value.ControlChanged(this.Text); } if (OnChange != null) { OnChange.Execute(); } }
void EditText_TextChanged(object sender, TextChangedEventArgs e) { if (_view.IsShown) { _text = _view.Text; if (Value != null) { Value.ControlChanged(e.Text.ToString()); } if (OnChange != null) { OnChange.Execute(); } } }
private void OnEditingChanged() { string old = _text; _text = Text; if (Value != null && !IOSApplicationContext.Busy) { Value.ControlChanged(Text); } _inputValidator.OnChange(Text, old); if (OnChange != null) { OnChange.Execute(); } }
private void EditText_TextChanged(object sender, TextChangedEventArgs e) { if (_view.IsShown) { HideWarning(); string old = _text; _text = _view.Text; if (Value != null) { Value.ControlChanged(e.Text.ToString()); } _inputValidator.OnChange(_text, old); if (OnChange != null) { OnChange.Execute(); } } }
void KeyboardClicked(string Value) { var oldStr = str + ""; try { App.UniversalLineInApp = 4567456001; if (Object != null && Value != "") { App.UniversalLineInApp = 4567456002; var func = PropertySelector.Compile(); //App.UniversalLineInApp = 4567456003; var CurrentValue = func(Object); //App.UniversalLineInApp = 4567456004; switch (Value) { case "OK": //App.UniversalLineInApp = 4567456005; Hide(); //App.UniversalLineInApp = 4567456006; OnOK.Execute(CurrentValue); //App.UniversalLineInApp = 4567456007; return; case "Clear": //App.UniversalLineInApp = 4567456008; str = str.Length == 0 ? "" : str.Substring(0, str.Length - 1); //App.UniversalLineInApp = 4567456009; if (str == "" && (KeyboardType == KeyboardType.Int || KeyboardType == KeyboardType.Decimal)) { str = "0"; } //App.UniversalLineInApp = 4567456010; break; default: //App.UniversalLineInApp = 4567456011; str = str + Value; //App.UniversalLineInApp = 4567456012; break; } App.UniversalLineInApp = 4567456013; var StrLastCharIsDot = str.EndsWith("."); //App.UniversalLineInApp = 4567456014; if (StrLastCharIsDot) { str += "354168413153848456"; } //App.UniversalLineInApp = 4567456015; object NewValue = str; //App.UniversalLineInApp = 4567456016; App.SpecialLog = "KeyboardType: " + (KeyboardType == KeyboardType.Int ? "KeyboardType.Int" : KeyboardType == KeyboardType.Decimal ? "KeyboardType.Decimal" : "---") + "str: " + str; if (KeyboardType == KeyboardType.Int) { NewValue = Convert.ToInt32(str); } App.UniversalLineInApp = 4567456017; if (KeyboardType == KeyboardType.Decimal) { NewValue = Convert.ToDecimal(str); } //App.UniversalLineInApp = 4567456018; var prop = (PropertyInfo)((MemberExpression)PropertySelector.Body).Member; //App.UniversalLineInApp = 4567456019; prop.SetValue(Object, NewValue, null); //App.UniversalLineInApp = 4567456020; NewValue = func(Object); App.UniversalLineInApp = 4567456021; if (KeyboardType == KeyboardType.Int || KeyboardType == KeyboardType.Decimal) { str = NewValue.ToString(); } //App.UniversalLineInApp = 4567456022; if (StrLastCharIsDot) { str = str + "."; } //App.UniversalLineInApp = 4567456023; OnChange.Execute(NewValue); App.UniversalLineInApp = 4567456024; } } catch (Exception err) { str = oldStr; } }