Example #1
0
 public InvoiceCreator(OrdersForm ordersForm, Customer customer, Order order, List<OrderedStock> orderedStock)
 {
     this.ordersForm = ordersForm;
     this.customer = customer;
     this.order = order;
     this.orderedStock = orderedStock;
     grandTotal = 0;
 }
Example #2
0
        //Constructor
        public NewOrderForm(OrdersForm ordersForm)
        {
            this.StartPosition = FormStartPosition.CenterScreen;
            InitializeComponent();
            this.ordersForm = ordersForm;

            setup();
        }
        public MailingLabelCreator(OrdersForm ordersForm, Customer customer, bool bigLabel)
        {
            this.ordersForm = ordersForm;
            this.customer = customer;

            if (bigLabel)
            {
                customerDetailsFontSize = "48";
                bookshopLabelTitleSize = "24";
                bookshopLabelSubTitleSize = "18";
                tableCellWidth = "6282";
            }
            else
            {
                customerDetailsFontSize = "28";
                bookshopLabelTitleSize = "22";
                bookshopLabelSubTitleSize = "8";
                tableCellWidth = "3355";
            }
        }
 /*Precondition:
  Postcondition: Open up orders form with current order loaded up */
 private void btnGoToOrder_Click(object sender, EventArgs e)
 {
     OrdersForm of = new OrdersForm(null);
     of.loadOrder(currOrder.orderID);
     of.Show();
 }
Example #5
0
 /*Precondition:
  Postcondition: Moves to orders form*/
 private void btnOrders_Click(object sender, EventArgs e)
 {
     this.Hide();
     OrdersForm of = new OrdersForm(this);
     of.Show();
 }