Example #1
0
 public PaymentForm(OrderForm orderForm)
 {
     order = new Order();
     InitializeComponent();
     this.orderForm = orderForm;
     PrintBillBtn.Hide();
     ps = new PaymentService();
 }
Example #2
0
 public PaymentForm(OrderForm orderForm, Order order)
 {
     InitializeComponent();
     PrintBillBtn.Hide();
     this.orderForm     = orderForm;
     this.order         = order;
     OrderIdTxtBox.Text = order.id.ToString();
     ps = new PaymentService();
     PrintBill();
 }