//tries to satisfy the imports
 private void TrySatisyImports()
 {
     try
     {
         var tempContainer = LocatorBootstrapper.EnsureLocatorBootstrapper();
         if (tempContainer != null)
         {
             _container = tempContainer;
             Debug.WriteLine("MEFedMVVM Composition Container is changing.");
         }
         resolver                      = new MEFedMVVMResolver(_container);
         basicVMInitializer            = new BasicViewModelInitializer(Resolver);
         dataContextAwareVMInitializer = new DataContextAwareViewModelInitializer(Resolver);
     }
     catch (Exception ex)
     {
         Debug.WriteLine("MEFEdMVVM: ViewModelRepoistory. Unable to satisfy imports. " + ex);
     }
 }
示例#2
0
 //tries to satisfy the imports
 private void TrySatisyImports()
 {
     try
     {
         var tempContainer = LocatorBootstrapper.EnsureLocatorBootstrapper();
         if (tempContainer != null)
         {
             _container = tempContainer;
             Debug.WriteLine("MEFedMVVM Composition Container is changing.");
         }
         resolver = new MEFedMVVMResolver(_container);
         basicVMInitializer = new BasicViewModelInializer(Resolver);
         dataContextAwareVMInitializer = new DataContextAwareViewModelInitializer(Resolver);
     }
     catch (Exception ex)
     {
         Debug.WriteLine("MEFEdMVVM: ViewModelRepoistory. Unable to satisfy imports. " + ex);
     }
 }
 public BasicViewModelInializer(MEFedMVVMResolver resolver)
 {
     this.resolver = resolver;
 }
示例#4
0
 public DataContextAwareViewModelInitializer(MEFedMVVMResolver resolver)
     : base(resolver)
 {
 }
示例#5
0
 public BasicViewModelInializer(MEFedMVVMResolver resolver)
 {
     this.resolver = resolver;
 }
 public DataContextAwareViewModelInitializer(MEFedMVVMResolver resolver)
     : base (resolver )
 { }