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"); } }
public static void NewCustomerOrderArriver(object sender, OrderEventArgs args) { OrderViewForm of = new OrderViewForm(args.Order, OrderViewForm.OrderFormType.newOrder); of.ShowDialog(); }
private static void NewSupplierOrderDelivered(object sender, OrderEventArgs args) { OrderViewForm of = new OrderViewForm(args.Order, OrderViewForm.OrderFormType.SupplierOrderDelivered); of.ShowDialog(); }
private void viewOrdersToolStripMenuItem_Click(object sender, EventArgs e) { OrderViewForm orderViewForm = new OrderViewForm(new OrderController()); // show orders view form orderViewForm.ShowDialog(); }