in the ShowOrders Controller
public class ShowOrders : UIControllerBase
{
public readonly Models.Orders Orders = new Models.Orders();
public ShowOrders()
{
From = Orders;
}
public readonly ShowOrderDetails ShowOrderDetailsController = new ShowOrderDetails();
public void RunShowOrderDetails()
{
ShowOrderDetailsController.Run(Orders.OrderID);
}
public void Run()
{
Execute();
}
...
in the ShowOrdersView
partial class ShowOrdersView : Shared.Theme.Controls.Form
{
ShowOrders _controller;
public ShowOrdersView(ShowOrders controller)
{
_controller = controller;
InitializeComponent();
subForm1.SetController(_controller.ShowOrderDetailsController,
_controller.RunShowOrderDetails);
}
...
in the ShowOrderDetails
public class ShowOrderDetails : UIControllerBase
{
public readonly Models.Order_Details Order_Details = new Models.Order_Details();
public ShowOrderDetails()
{
From = Order_Details;
}
public void Run(Number orderId)
{
Where.Clear();
Where.Add(Order_Details.OrderID.IsEqualTo(orderId));
Execute();
}
...
Help us improve, Edit this page on GitHub
or email us at info@fireflymigration.com