This project is read-only.

How the framework handles the data update between two screens?

Feb 13, 2012 at 10:25 PM

How does the CODE Framework handles the data update between two screens?

If two screens are displayed and one of screen data get update, another screen get auto update after first screen update.

i.e., Customer has a new order. Products screen data needs to update after customer order gets process.


Mar 10, 2012 at 3:13 PM

You could always pass along a reference of the view model from one screen to the other. You could make such a view model an optional parameter in the controller and pass that reference on to the view model of the second screen. In the second view model, if that reference is not null, you can update it and to whatever you'd like with it. Something like this perhaps:

public class EditCustomerViewModel : ViewModel
    public CustomerListViewModel Customers { get; set; }

    public void Save()
        if (Customers != null)
   = this.Something;
        // More code here