Beispiel #1
0
 public NavigationService(
     [Import] IMVVMLocatorService mvvmLocatorService,
     [Import] IDataConverterService dataConverterService,
     [Import] ILoggerService logger)
 {
     m_MVVMLocatorService   = mvvmLocatorService;
     m_dataConverterService = dataConverterService;
     m_Logger = logger;
 }
Beispiel #2
0
        public MEFMVVMLocatorService(
            [Import] ILoggerService logger,
            [Import] IDataConverterService dcs,
            [ImportMany] IList <Lazy <IView, ExportViewAttribute> > views,
            [ImportMany] IList <Lazy <IViewModel, ExportViewModelAttribute> > viewModels)
        {
            m_dataConverterService = dcs;
            m_Logger = logger;

            m_ViewModels = viewModels;
            m_Views      = views;
        }