예제 #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;
 }
예제 #2
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);
        }
예제 #3
0
 public void Add(ViewModel vm)
 {
     _viewModels[vm.GetHashCode().ToString()] = vm;
 }
예제 #4
0
 public void Add(ViewModel vm)
 {
     _viewModels[vm.GetHashCode().ToString()] = vm;
 }