public GeometricShapeWpfControl(AimTemplateTreeGeometricShapeNode geometricShape) { GeometricShape = geometricShape; InitializeComponent(); _originalBackground = Background; }
private AimTemplateTreeGeometricShapeNode AimTemplateTreeGeometricShapeNodeFromXsdGeometricShape(TemplateComponent component, TemplateComponentGeometricShape geometricShape) { int itemNumber; int.TryParse(component.itemNumber, out itemNumber); int minCardinality; int.TryParse(component.minCardinality, out minCardinality); int maxCardinality; int.TryParse(component.maxCardinality, out maxCardinality); string label = component.label; if (component.QuestionType != null) { label = component.QuestionType.codeMeaning; } var node = new AimTemplateTreeGeometricShapeNode( label, itemNumber, component.explanatoryText, minCardinality, maxCardinality, component.shouldDisplay, component.groupLabel, ValidTermFromXsdValidTerm(component.QuestionType), geometricShape.noMoreQuestions, geometricShape.nextId, component.id, GeometricShapesFromXsdGeometricShapeValue(geometricShape.Value) ); return(node); }
private AimTemplateTreeGeometricShapeNode AimTemplateTreeGeometricShapeNodeFromXsdGeometricShape(TemplateComponent component, TemplateComponentGeometricShape geometricShape) { int itemNumber; int.TryParse(component.itemNumber, out itemNumber); int minCardinality; int.TryParse(component.minCardinality, out minCardinality); int maxCardinality; int.TryParse(component.maxCardinality, out maxCardinality); string label = component.label; if (component.QuestionType != null) label = component.QuestionType.codeMeaning; var node = new AimTemplateTreeGeometricShapeNode( label, itemNumber, component.explanatoryText, minCardinality, maxCardinality, component.shouldDisplay, component.groupLabel, ValidTermFromXsdValidTerm(component.QuestionType), geometricShape.noMoreQuestions, geometricShape.nextId, component.id, GeometricShapesFromXsdGeometricShapeValue(geometricShape.Value) ); return node; }