Example #1
0
        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);
        }
Example #2
0
 public DotNode(Guid id, String text, DotShape shape) : this(id, text)
 {
     this.Shape = shape;
 }
Example #3
0
 public static DotNode <T> FromGenericNotation(IDefineSimpleNotation notation)
 {
     return(new DotNode <T>(notation.Id, notation.Text, DotShape.FromGenericType(notation.NotationObjectType)));
 }
Example #4
0
 public static ActionDotRepresentation <T> FromGenericNotation(IDefineSimpleNotation notation)
 {
     return(new ActionDotRepresentation <T>(notation.Id, notation.Text, DotShape.FromGenericType(notation.NotationObjectType)));
 }