public ReadingPlanningViewModel([Import] IApprovalRepository repository, [Import] IReadingPlanningViewModelFactory readingPlanningViewModelFactory, IInspectionViewModelFactory inspectionViewModelFactory) { m_Repository = repository; m_Repository.ContextChanged += (s, e) => Application.Current.Dispatcher.Invoke(LoadData); m_ReadingPlanningViewModelFactory = readingPlanningViewModelFactory; m_InspectionViewModelFactory = inspectionViewModelFactory; LoadData(); FlyoutActivated = true; }
public InspectionViewModelFactory(IPlantManagementViewModelFactory plantViewModelFactory, IReadingPlanningViewModelFactory readingPlanningViewModelFactory, IApprovalRepository repository) { m_PlantManagementViewModelFactory = plantViewModelFactory; m_ReadingPlanningViewModelFactory = readingPlanningViewModelFactory; m_Repository = repository; }