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