예제 #1
0
 static void Main(string[] args)
 {
     var m1   = new ModelType1();
     var m2   = new ModelType2();
     var obj1 = new ViewModel <ModelType1>(m1);
     var obj2 = new ViewModel <ModelType2>(m2);
 }
예제 #2
0
 public ViewModel2(ModelType2 m)
 {
     Model = m;
 }