public ReadingPlanningViewModelFactory(IApprovalRepository repository, IResponsibleSubjectViewModelFactory responsibleSubjectViewModelFactory, IPlantManagementViewModelFactory plantManagementViewModelFactory, ITaskGenerator taskGenerator) { m_Repository = repository; m_ResponsibleSubjectViewModelFactory = responsibleSubjectViewModelFactory; m_PlantManagementViewModelFactory = plantManagementViewModelFactory; m_TaskGenerator = taskGenerator; m_Random = new Random(); }
public MeasureManagementViewModel([Import] IApprovalRepository repository, [Import] IPlantManagementViewModelFactory plantManagementViewModelFactory, [Import] IInspectionViewModelFactory inspectionViewModelFactory) { m_Repository = repository; m_Repository.ContextChanged += (s, e) => Application.Current.Dispatcher.Invoke(Reload); m_PlantManagementViewModelFactory = plantManagementViewModelFactory; m_InspectionViewModelFactory = inspectionViewModelFactory; LoadData(); FlyoutActivated = true; }
public SeriesAddViewModel(Series model, IApprovalRepository repository, IPlantManagementViewModelFactory plantManagementViewModelFactory, IResponsibleSubjectViewModelFactory responsibleSubjectViewModelFactory, ITaskGenerator taskGenerator) { DisplayName = TranslationProvider.Translate("InspectionAdd"); m_Model = model; m_Repository = repository; m_Repository.ContextChanged += (s, e) => Application.Current.Dispatcher.Invoke(LoadData); m_ResponsibleSubjectViewModelFactory = responsibleSubjectViewModelFactory; m_TaskGenerator = taskGenerator; LoadData(); }
public SeriesEditViewModel(Series model, IApprovalRepository repository, IPlantManagementViewModelFactory plantManagementViewModelFactory, IResponsibleSubjectViewModelFactory responsibleSubjectViewModelFactory, ITaskGenerator taskGenerator, Approval_Inspection selectedInspection, IEnumerable <Approval_Inspection> allInspections) : base(model, repository, plantManagementViewModelFactory, responsibleSubjectViewModelFactory, taskGenerator) { m_Repository = repository; m_SelectedInspection = selectedInspection; m_AllInspections = allInspections; DisplayName = TranslationProvider.Translate("InspectionEdit"); SelectResponsibleSubject(); SelectWeekDays(); SelectAuxillaryConditions(); }
public PlantManagementViewModel([Import] IApprovalRepository repository, [Import] IPlantManagementViewModelFactory plantManagementViewModelFactory) { m_Repository = repository; m_PlantManagementViewModelFactory = plantManagementViewModelFactory; m_Repository.ContextChanged += (s, e) => Application.Current.Dispatcher.Invoke(LoadData); m_InEffectStatus = Enum.GetValues(typeof(InEffect)); LoadData(); SelectedPlantViewModel = null; FlyoutActivated = true; }
public InspectionViewModelFactory(IPlantManagementViewModelFactory plantViewModelFactory, IReadingPlanningViewModelFactory readingPlanningViewModelFactory, IApprovalRepository repository) { m_PlantManagementViewModelFactory = plantViewModelFactory; m_ReadingPlanningViewModelFactory = readingPlanningViewModelFactory; m_Repository = repository; }