Exemple #1
0
 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;
 }
Exemple #3
0
 private static string FormatId(int activityId, ActivityVertexType type)
 {
     if (type == ActivityVertexType.ActivityStart)
     {
         return("S" + activityId);
     }
     else
     {
         return("E" + activityId);
     }
 }
Exemple #4
0
 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;
     }
 }