public static DotShape FromGenericType(NotationObjectTypes genericType) { DotShape result = null; switch (genericType) { case NotationObjectTypes.Action: result = DotShapes.Box; break; case NotationObjectTypes.Decision: result = DotShapes.Diamond; break; default: result = DotShapes.Box; break; } return(result); }
public DotNode(Guid id, String text, DotShape shape) : this(id, text) { this.Shape = shape; }
public static DotNode <T> FromGenericNotation(IDefineSimpleNotation notation) { return(new DotNode <T>(notation.Id, notation.Text, DotShape.FromGenericType(notation.NotationObjectType))); }
public static ActionDotRepresentation <T> FromGenericNotation(IDefineSimpleNotation notation) { return(new ActionDotRepresentation <T>(notation.Id, notation.Text, DotShape.FromGenericType(notation.NotationObjectType))); }