Exemple #1
0
        private void ValidateInput(string value)
        {
            bool flag = (((this.cvc.text.Length >= 3) && BankCardUtils.IsBankCard(this.cardNumber.text)) && (this.yy.text.Length == this.yy.characterLimit)) && !string.IsNullOrEmpty(this.cardHolder.text);

            if (flag)
            {
                int num = int.Parse(this.mm.text);
                flag = (flag && (num >= 1)) && (num <= 12);
            }
            this.continueButton.SetBool("Visible", flag);
        }
Exemple #2
0
        private void ValidateInput(string input = "")
        {
            bool flag = (((this.cvc.text.Length == this.cvc.characterLimit) && BankCardUtils.IsBankCard(this.number.text)) && (this.yy.text.Length == this.yy.characterLimit)) && !string.IsNullOrEmpty(this.cardHolder.text);

            if (flag)
            {
                int num = int.Parse(this.mm.text);
                flag = (flag && (num >= 1)) && (num <= 12);
            }
            base.continueButton.interactable = flag;
        }