private InternalEventVertex(string id, int activityId, ActivityVertexType type, bool critical) { this.activityId = activityId; this.type = type; this.critical = critical; this.id = id; }
private InternalEventVertex(string id, int activityId, ActivityVertexType type, bool critical) { this.activityId = activityId; this.type = type; this.critical = critical; this.id = id; }
private static string FormatId(int activityId, ActivityVertexType type) { if (type == ActivityVertexType.ActivityStart) { return("S" + activityId); } else { return("E" + activityId); } }
public static InternalEventVertex Create(int activityId, ActivityVertexType type, bool critical) { return(new InternalEventVertex(FormatId(activityId, type), activityId, type, critical)); }
public static InternalEventVertex Create(int activityId, ActivityVertexType type, bool critical) { return new InternalEventVertex(FormatId(activityId, type), activityId, type, critical); }
private static string FormatId(int activityId, ActivityVertexType type) { if (type == ActivityVertexType.ActivityStart) { return "S" + activityId; } else { return "E" + activityId; } }