Beispiel #1
0
        public static Flowchart <T, R> RequiresField <T, R>(this Flowchart <T, R> chart, Expression <Func <T, object> > field)
        {
            var specifier = new PropertySpecifier <T>(field);

            chart.LastShape().RequiredField = specifier;
            return(chart);
        }
        public static Flowchart <T, R> WithArrowPointingTo <T, R>(this Flowchart <T, R> chart, string pointsTo)
        {
            Arrow <T> arrow = new Arrow <T>();

            arrow.PointsTo = pointsTo;
            chart.LastShape().Arrows.Add(arrow);
            return(chart);
        }
Beispiel #3
0
 public static Flowchart <T, R> AndTheAction <T, R>(this Flowchart <T, R> chart, Action <T> action)
 {
     chart.LastShape().LastArrow().Action = action;
     return(chart);
 }
Beispiel #4
0
 public static Flowchart <T, R> AndTheRule <T, R>(this Flowchart <T, R> chart, Func <T, bool> rule)
 {
     chart.LastShape().LastArrow().Rule = rule;
     return(chart);
 }
Beispiel #5
0
 public static Flowchart <T, R> YieldingResult <T, R>(this Flowchart <T, R> chart, R result)
 {
     chart.LastShape().Result = result;
     return(chart);
 }