Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iskernel/5604135 to your computer and use it in GitHub Desktop.
Save iskernel/5604135 to your computer and use it in GitHub Desktop.
Adapter Example for MVA-T
public class AdcAdapter
{
private IAdcModel _model;
private IAdcView _view;
public AdcAdapter(IAdcView view, IAdcModel model)
{
_model = model;
_view = view;
}
public void UpdateModel()
{
//Updates the Model properties according to the properties of the View
//...
}
public void UpdateView()
{
//Updates the View properties according to the properties of the Model
//...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment