/// <summary> /// Gets properties required for auto-detection. /// </summary> /// <returns>A PrerequisitView object</returns> public PrerequisitView GetPrerequisits() { Microsoft.Protocols.TestManager.Detector.Prerequisites p = detector.GetPrerequisits(); prerequisits = new PrerequisitView() { Summary = p.Summary, Title = p.Title, Properties = new List <PrerequisitProperty>() }; foreach (var i in p.Properties) { prerequisits.Properties.Add(new PrerequisitProperty() { PropertyName = i.Key, PropertyValues = i.Value }); } return(prerequisits); }
public void SetPrerequisits(PrerequisitView prerequisits) { this.prerequisits = prerequisits; Title = prerequisits.Title; PrerequisitesGrid.DataContext = prerequisits; }
/// <summary> /// Gets properties required for auto-detection. /// </summary> /// <returns>A PrerequisitView object</returns> public PrerequisitView GetPrerequisits() { Microsoft.Protocols.TestManager.Detector.Prerequisites p = detector.GetPrerequisits(); prerequisits = new PrerequisitView() { Summary = p.Summary, Title = p.Title, Properties = new List<PrerequisitProperty>() }; foreach (var i in p.Properties) { prerequisits.Properties.Add(new PrerequisitProperty() { PropertyName = i.Key, PropertyValues = i.Value }); } return prerequisits; }