Пример #1
0
 public void OnCardInfoSaveFailed(CardInfoSaveFailedEventArgs e)
 {
     if (CardInfoSaveFailed != null)
     {
         CardInfoSaveFailed(this, e);
     }
 }
Пример #2
0
        //void BindddlCardTypes()
        //{
        //    if (ddlCardTypes.Items.Count == 0)
        //    {
        //        ddlCardTypes.DataSource = Enums.GetEnumAsTupleList(typeof(Enums.CreditCardType));
        //        ddlCardTypes.DataTextField = "Item1";
        //        ddlCardTypes.DataValueField = "Item2";
        //        ddlCardTypes.DataBind();

        //        ddlCardTypes.Items.Remove(ddlCardTypes.Items[0]); // Unknown
        //    }
        //}

        void CreditCardEdit1_CardInfoSaveFailed(object sender, CardInfoSaveFailedEventArgs e)
        {
            if (string.IsNullOrEmpty(e.FailException.Message))
            {
                return;
            }

            cstValCardInfo0.Enabled      = true;
            cstValCardInfo0.ErrorMessage = e.FailException.Message;
            cstValCardInfo0.Validate();
            Page.Validate();
        }