Esempio n. 1
0
 private void Payment_OnPaymentAction(object sender, pay.PayArgs e)
 {
     if (e.RefID == 100)  //OK Payment
     {
         //pictureBox.BackColor = Color.Green;
         //MessageBox.Show("Payment is OK");
     }
     else
     {
         //pictureBox.BackColor = Color.OrangeRed;
         //MessageBox.Show("Payment is not OK");
     }
 }
 private void Shayan_OnPaymentAction(object sender, pay.PayArgs e)
 {
     if (e.Status > 0)
     {
         this.Invoke(new Action(() =>
         {
             panel1.BackColor = Color.Green;
         }));
     }
     else
     {
         this.Invoke(new Action(() =>
         {
             panel1.BackColor = Color.Red;
         }));
     }
 }