Example #1
0
 public LinkInfo(int fromID, string fromParam, int toID, string toParam, ParamInfos.ParamType linkType)
 {
     FromID    = fromID;
     FromParam = fromParam;
     ToID      = toID;
     ToParam   = toParam;
     LinkType  = linkType;
 }
Example #2
0
    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);
    }
Example #3
0
    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);
    }