예제 #1
0
 private void BtnPay_Click(object sender, EventArgs e)
 {
     try
     {
         if (radioCredit.Checked)
         {
             helper.CheckCreditCardNo(txtCreditNo.Text);
             helper.CheckSecurityNo(txtSecurityCode.Text);
             helper.CheckMonth(txtMonth.Text);
             helper.CheckYear(txtYear.Text);
         }
         flag            = true;
         _payment.TypeID = radioCash.Checked ? 1 : 2;
         this.Close();
         MessageBox.Show("Ödeme Başarılı");
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }