コード例 #1
0
ファイル: PaymentMethodUI.cs プロジェクト: shukerb/Chapeau
 // saves payment information in database
 private void RecordPayment(Enum_Payment_Method method)
 {
     Bill.SetPaymentMethod(method);
     ChepeauLogic.Payment_Service payment = new ChepeauLogic.Payment_Service();
     Bill.FinishBill(payment.AssignBillID(), txtBx_Feedback.Text);
     Bill.RecordTimeOfPayment();
     payment.CreateBill(Bill);
 }
コード例 #2
0
ファイル: PaymentMethodUI.cs プロジェクト: shukerb/Chapeau
        // sets order to complete
        private void CompleteOrder(Enum_Payment_Method method)
        {
            try
            {
                RecordPayment(method);
                ClearOrder();
                FreeTable();
                Close();
            }
            catch (Exception)
            {
                string error = "Could not connect to the Database, please try again later.";
                WriteErrorInTXT(error);
            }

            Close();
        }
コード例 #3
0
 public void SetPaymentMethod(Enum_Payment_Method paymentMethod)
 {
     PaymentMethod = paymentMethod;
 }