public LinkInfo(int fromID, string fromParam, int toID, string toParam, ParamInfos.ParamType linkType) { FromID = fromID; FromParam = fromParam; ToID = toID; ToParam = toParam; LinkType = linkType; }
public Color ColorFromType(ParamInfos.ParamType type) { switch (type) { case ParamInfos.ParamType.ParamFlow: return(Color.white); case ParamInfos.ParamType.ParamShip: return(Color.red); case ParamInfos.ParamType.ParamHangar: return(Color.green); } return(Color.white); }
public Color ColorFromType(ParamInfos.ParamType type) { switch (type) { case ParamInfos.ParamType.ParamFlow: return(Color.white); case ParamInfos.ParamType.ParamShip: return(Color.red); case ParamInfos.ParamType.ParamHangar: return(Color.green); case ParamInfos.ParamType.ParamBookmark: return(Color.blue); case ParamInfos.ParamType.ParamBoolean: return(Color.yellow); } return(Color.white); }