예제 #1
0
 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;
        }
예제 #3
0
        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();
        }
예제 #4
0
        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();
        }
예제 #5
0
        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;
        }
예제 #6
0
 public InspectionViewModelFactory(IPlantManagementViewModelFactory plantViewModelFactory, IReadingPlanningViewModelFactory readingPlanningViewModelFactory, IApprovalRepository repository)
 {
     m_PlantManagementViewModelFactory = plantViewModelFactory;
     m_ReadingPlanningViewModelFactory = readingPlanningViewModelFactory;
     m_Repository = repository;
 }