public static ProcessingFacadeBase GetProcessing(ProcessingTypes processingType) { if (processingTypes.TryGetValue(processingType, out ProcessingFacadeBase processing)) { return(processing); } return(null); }
private void SaveProcessingType(object ProcessingTypeInstance) { ProcessingTypeViewModel ProcessingType = ProcessingTypeInstance as ProcessingTypeViewModel; if (ProcessingType != null && ProcessingType.IsValid) { ProcessingTypes.Add(ProcessingType); } Back(); }
private void DeleteProcessingType(object ProcessingTypeObject) { ProcessingTypeViewModel ProcessingType = ProcessingTypeObject as ProcessingTypeViewModel; if (ProcessingType != null) { ProcessingTypes.Remove(ProcessingType); } Back(); }
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(); }
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); }