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); }
public static Flowchart <T, R> AndTheAction <T, R>(this Flowchart <T, R> chart, Action <T> action) { chart.LastShape().LastArrow().Action = action; return(chart); }
public static Flowchart <T, R> AndTheRule <T, R>(this Flowchart <T, R> chart, Func <T, bool> rule) { chart.LastShape().LastArrow().Rule = rule; return(chart); }
public static Flowchart <T, R> YieldingResult <T, R>(this Flowchart <T, R> chart, R result) { chart.LastShape().Result = result; return(chart); }