public static ProcessingFacadeBase GetProcessing(ProcessingTypes processingType)
 {
     if (processingTypes.TryGetValue(processingType, out ProcessingFacadeBase processing))
     {
         return(processing);
     }
     return(null);
 }
Пример #2
0
        private void SaveProcessingType(object ProcessingTypeInstance)
        {
            ProcessingTypeViewModel ProcessingType = ProcessingTypeInstance as ProcessingTypeViewModel;

            if (ProcessingType != null && ProcessingType.IsValid)
            {
                ProcessingTypes.Add(ProcessingType);
            }
            Back();
        }
Пример #3
0
        private void DeleteProcessingType(object ProcessingTypeObject)
        {
            ProcessingTypeViewModel ProcessingType = ProcessingTypeObject as ProcessingTypeViewModel;

            if (ProcessingType != null)
            {
                ProcessingTypes.Remove(ProcessingType);
            }
            Back();
        }
Пример #4
0
        public void SetProcessingType(ProcessingTypes processingType)
        {
            if (processingType == ProcessingTypes.Collecting)
            {
                ProcessingType = ProcessingTypes.Collecting;
            }
            else
            {
                for (int i = _eventsQueue.Count; i > 0; i--)
                {
                    InvokeEvent(_eventsQueue.Dequeue());
                }

                ProcessingType = ProcessingTypes.Invoking;
            }
        }
        private void RefreshProcessingTypes()
        {
            ProcessingTypes.Clear();

            switch (TestType)
            {
            case TestType.MSTest:
                ProcessingTypes.Add(ProcessingType.MSTestExecution);
                ProcessingTypes.Add(ProcessingType.MSTestExecutionCreateCorrespondenceModel);
                ProcessingTypes.Add(ProcessingType.ListReporting);
                ProcessingTypes.Add(ProcessingType.CsvReporting);
                ProcessingTypes.Add(ProcessingType.CollectStatistics);
                break;

            case TestType.CsvList:
                ProcessingTypes.Add(ProcessingType.ListReporting);
                ProcessingTypes.Add(ProcessingType.CsvReporting);
                ProcessingTypes.Add(ProcessingType.CollectStatistics);
                break;
            }

            ProcessingType = ProcessingTypes.FirstOrDefault();
        }
Пример #6
0
 public void InitSelectedItems()
 {
     Crop           = Crops.FirstOrDefault(c => c.CropId == Recipe.CropId);
     ProcessingType = ProcessingTypes.FirstOrDefault(pt => pt.ProcessingTypeId == Recipe.ProcessingTypeId);
     Carrier        = Carriers.FirstOrDefault(c => c.ComponentId == Recipe.CarrierId);
 }