Esempio n. 1
0
 public void SetDisplay(string phDescription, Action <string, INPUTFIELDTYPE> OnDataChanges, INPUTFIELDTYPE inputType)
 {
     strPlaceHolder      = phDescription;
     txtPlaceholder.text = phDescription;
     this.OnDataChanges  = OnDataChanges;
     this.inputType      = inputType;
     if (inputType == INPUTFIELDTYPE.PASS || inputType == INPUTFIELDTYPE.REPASS)
     {
         inputField.contentType = InputField.ContentType.Password;
     }
 }
    private void OnInputTextChange(string inputText, INPUTFIELDTYPE inputType)
    {
        switch (inputType)
        {
        case INPUTFIELDTYPE.EMAIL:
            email = inputText;
            break;

        case INPUTFIELDTYPE.USER:
            userName = inputText;
            break;

        case INPUTFIELDTYPE.PASS:
            pass = inputText;
            break;

        case INPUTFIELDTYPE.REPASS:
            repass = inputText;
            break;

        default:
            break;
        }
    }