Esempio n. 1
0
 private void Nextbutton_Click(object sender, EventArgs e)
 {
     if (order != null)
     {
         orderViewForm = new OrderViewForm(order, OrderViewForm.OrderFormType.newOrder);
         orderViewForm.ShowDialog();
     }
     else
     {
         MessageBox.Show("Supplier not chosen", "error");
     }
 }
Esempio n. 2
0
        public static void NewCustomerOrderArriver(object sender, OrderEventArgs args)
        {
            OrderViewForm of = new OrderViewForm(args.Order, OrderViewForm.OrderFormType.newOrder);

            of.ShowDialog();
        }
Esempio n. 3
0
        private static void NewSupplierOrderDelivered(object sender, OrderEventArgs args)
        {
            OrderViewForm of = new OrderViewForm(args.Order, OrderViewForm.OrderFormType.SupplierOrderDelivered);

            of.ShowDialog();
        }
Esempio n. 4
0
        private void viewOrdersToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OrderViewForm orderViewForm = new OrderViewForm(new OrderController()); // show orders view form

            orderViewForm.ShowDialog();
        }