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