private void valueChanged(Control aSender, ControlArgs aArgs) { switch (aSender.type) { //Click case EControl.BUTTON: handleButton((Button)aSender); break; case EControl.TEXT_FIELD: string text = aArgs.value.asString(); handleTextField((TextField)aSender, text); if (aArgs.value.getError() != ParseError.NO_ERROR) { Debug.Log("Error in Parsing"); } break; } }
public Control removeControl(Control aControl) { if (aControl != null && m_Controls != null) { if (m_Controls.Contains(aControl)) { m_Controls.Remove(aControl); return null; } } return aControl; }