void textChangedEvent(object sender, EventArgs e) { com.codename1.ui.Display disp = (com.codename1.ui.Display)com.codename1.ui.Display.getInstance(); Tchange t = new Tchange(); t.currentlyEditing = currentlyEditing; t.text = toJava(textInputInstance.Text); disp.callSerially(t); }
void textChangedEvent(object sender, RoutedEventArgs e) { if (textInputInstance == null) { System.Diagnostics.Debug.WriteLine("[textChangeEvent] textInput is null. Shoud not happen!!"); return; } com.codename1.ui.Display disp = (com.codename1.ui.Display)com.codename1.ui.Display.getInstance(); Tchange t = new Tchange(); t.currentlyEditing = currentlyEditing; if (textInputInstance is TextBox) { t.text = toJava(((TextBox)textInputInstance).Text); } else { t.text = toJava(((PasswordBox)textInputInstance).Password); } disp.callSerially(t); }