Exemplo n.º 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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 5
0
 public static Flowchart <T, R> YieldingResult <T, R>(this Flowchart <T, R> chart, R result)
 {
     chart.LastShape().Result = result;
     return(chart);
 }