Esempio n. 1
0
 public ViewModel Create(string name)
 {
     var type = _assembly.GetType(name);
     var instance = Activator.CreateInstance(type);
     var vm = new ViewModel(instance);
     _viewModels[vm.GetHashCode().ToString()] = vm;
     return vm;
 }
Esempio n. 2
0
 public void Add(ViewModel vm)
 {
     _viewModels[vm.GetHashCode().ToString()] = vm;
 }