bovender framework
C# framework that implements MVVM and more
TestViewModel.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
6 
7 namespace Bovender.UnitTests.Mvvm
8 {
10  {
11  public string Value
12  {
13  get { return Model.Value; }
14  set
15  {
16  Model.Value = value;
17  }
18  }
19 
20  TestModel Model { get; set; }
21 
22  public TestViewModel(TestModel model)
23  {
24  Model = model;
25  }
26 
27  public override object RevealModelObject()
28  {
29  return Model;
30  }
31  }
32 }
override object RevealModelObject()
Returns the model object that this view model wraps or null if there is no wrapped model object...