示例#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");
     }
 }
示例#2
0
        public static void NewCustomerOrderArriver(object sender, OrderEventArgs args)
        {
            OrderViewForm of = new OrderViewForm(args.Order, OrderViewForm.OrderFormType.newOrder);

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

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

            orderViewForm.ShowDialog();
        }