private decimal pGetDecimal(properties_d p)
    {
        decimal ret = 0;

        switch (p)
        {
        case properties_d.externalCritCond1:
            ret = extCritValue1;
            break;

        case properties_d.externalCritCond2:
            ret = extCritValue2;
            break;

        case properties_d.externalCritCond3:
            ret = extCritValue3;
            break;

        case properties_d.externalCritCond4:
            ret = extCritValue4;
            break;
        }

        return(ret);
    }
Exemplo n.º 2
0
    private double pGetDefaultDouble(properties_d p)
    {
        double ret = 0;

        switch (p)
        {
        case properties_d.w:
            ret = default_resistWidth;
            break;

        case properties_d.wV:
            ret = default_resistWidthVar;
            break;

        case properties_d.h:
            ret = default_resistHeight_postDevelop;
            break;

        case properties_d.hV:
            ret = default_resistHeight_postDevelopVar;
            break;

        case properties_d.cRR:
            ret = default_resistCRR;
            break;

        case properties_d.cV:
            ret = default_resistCRRVar;
            break;

        case properties_d.tilt:
            ret = default_tilt;
            break;

        case properties_d.tiltV:
            ret = default_tiltVar;
            break;

        case properties_d.twist:
            ret = default_twist;
            break;

        case properties_d.twistV:
            ret = default_twistVar;
            break;
        }
        return(ret);
    }
    private decimal pGetDefaultDecimal(properties_d p)
    {
        decimal ret = 0;

        switch (p)
        {
        case properties_d.externalCritCond1:
        case properties_d.externalCritCond2:
        case properties_d.externalCritCond3:
        case properties_d.externalCritCond4:
            ret = 0;
            break;
        }

        return(ret);
    }
Exemplo n.º 4
0
    private void pSetDouble(properties_d p, double val)
    {
        switch (p)
        {
        case properties_d.w:
            resistWidth = val;
            break;

        case properties_d.wV:
            resistWidthVar = val;
            break;

        case properties_d.h:
            resistHeight_postDevelop = val;
            break;

        case properties_d.hV:
            resistHeight_postDevelopVar = val;
            break;

        case properties_d.cRR:
            resistCRR = val;
            break;

        case properties_d.cV:
            resistCRRVar = val;
            break;

        case properties_d.tilt:
            tiltAngle = val;
            break;

        case properties_d.tiltV:
            tiltAngleVar = val;
            break;

        case properties_d.twist:
            twistAngle = val;
            break;

        case properties_d.twistV:
            twistAngleVar = val;
            break;
        }
    }
Exemplo n.º 5
0
    private void pDefaultDouble(properties_d p)
    {
        switch (p)
        {
        case properties_d.w:
            resistWidth = default_resistWidth;
            break;

        case properties_d.wV:
            resistWidthVar = default_resistWidthVar;
            break;

        case properties_d.h:
            resistHeight_postDevelop = default_resistHeight_postDevelop;
            break;

        case properties_d.hV:
            resistHeight_postDevelopVar = default_resistHeight_postDevelopVar;
            break;

        case properties_d.cRR:
            resistCRR = default_resistCRR;
            break;

        case properties_d.cV:
            resistCRRVar = default_resistCRRVar;
            break;

        case properties_d.tilt:
            tiltAngle = default_tilt;
            break;

        case properties_d.tiltV:
            tiltAngleVar = default_tiltVar;
            break;

        case properties_d.twist:
            twistAngle = default_twist;
            break;

        case properties_d.twistV:
            twistAngleVar = default_twistVar;
            break;
        }
    }
    private void pDefaultDecimal(properties_d p)
    {
        switch (p)
        {
        case properties_d.externalCritCond1:
            extCritValue1 = 0;
            break;

        case properties_d.externalCritCond2:
            extCritValue2 = 0;
            break;

        case properties_d.externalCritCond3:
            extCritValue3 = 0;
            break;

        case properties_d.externalCritCond4:
            extCritValue4 = 0;
            break;
        }
    }
    private void pSetDecimal(properties_d p, decimal val)
    {
        switch (p)
        {
        case properties_d.externalCritCond1:
            extCritValue1 = val;
            break;

        case properties_d.externalCritCond2:
            extCritValue2 = val;
            break;

        case properties_d.externalCritCond3:
            extCritValue3 = val;
            break;

        case properties_d.externalCritCond4:
            extCritValue4 = val;
            break;
        }
    }
 public decimal getDecimal(properties_d p)
 {
     return(pGetDecimal(p));
 }
 public void defaultDecimal(properties_d p)
 {
     pDefaultDecimal(p);
 }
 public void setDecimal(properties_d p, decimal val)
 {
     pSetDecimal(p, val);
 }
Exemplo n.º 11
0
 public void setDouble(properties_d p, double val)
 {
     pSetDouble(p, val);
 }
Exemplo n.º 12
0
 public double getDefaultDouble(properties_d p)
 {
     return(pGetDefaultDouble(p));
 }
Exemplo n.º 13
0
 public void defaultDouble(properties_d p)
 {
     pDefaultDouble(p);
 }