IsCreditCard() public method

public IsCreditCard ( ) : bool
return bool
Ejemplo n.º 1
0
        public GameObject GetFormView(XsollaForm xsollaForm, XsollaTranslations translations)
        {
            bool isCcRender = xsollaForm.GetCurrentCommand() == XsollaForm.CurrentCommand.FORM && xsollaForm.IsCreditCard();

            if (isCcRender)
            {
                return(GetCardViewWeb(xsollaForm, translations));
            }
            else
            {
                FormElementAdapter adapter = GetComponent <FormElementAdapter>();
                adapter.SetForm(xsollaForm, translations);
                GameObject list = GetList(adapter);
                list.GetComponent <ListView>().DrawList(GetComponent <RectTransform> ());
                return(list);
            }
        }