Пример #1
0
 void fpiGetPaymentMethod_FormClosing(object sender, FormClosingEventArgs e)
 {
     sPaymentMethod = fpiGetPaymentMethod.GetPaymentMethod();
     if (sPaymentMethod == "DEPO")
     {
         MessageBox.Show("Sorry, you can't receive money on deposit paid.");
     }
     if (sPaymentMethod != "NULL" && sPaymentMethod != "DEPO")
     {
         tEngine.ReceiveMoneyOnAccount(sAccountCodeToReceive, fAmountToReceive, sPaymentMethod);
     }
     else
     {
         MessageBox.Show("Cancelled Receive on Account");
     }
     this.Close();
 }