Exemplo n.º 1
0
	public static double FuncOperatorValue(EFuncOperator eOpt, ref double dValue, double dChange)
	{
		switch (eOpt)
		{
		case EFuncOperator.EFO_Dec:
			dValue -= dChange;
			break;
		case EFuncOperator.EFO_Inc:
			dValue += dChange;
			break;
		case EFuncOperator.EFO_Set:
			dValue = dChange;
			break;
		}
		
		return dValue;
	}
Exemplo n.º 2
0
    public static sbyte FuncOperatorValue(EFuncOperator eOpt, ref sbyte nValue, sbyte nChange)
    {
        switch (eOpt)
        {
            case EFuncOperator.EFO_Dec:
                nValue -= nChange;
                break;
            case EFuncOperator.EFO_Inc:
                nValue += nChange;
                break;
            case EFuncOperator.EFO_Set:
                nValue = nChange;
                break;
        }

        return nValue;
    }
Exemplo n.º 3
0
    public static double FuncOperatorValue(EFuncOperator eOpt, ref double dValue, double dChange)
    {
        switch (eOpt)
        {
        case EFuncOperator.EFO_Dec:
            dValue -= dChange;
            break;

        case EFuncOperator.EFO_Inc:
            dValue += dChange;
            break;

        case EFuncOperator.EFO_Set:
            dValue = dChange;
            break;
        }

        return(dValue);
    }
Exemplo n.º 4
0
    public static sbyte FuncOperatorValue(EFuncOperator eOpt, ref sbyte nValue, sbyte nChange)
    {
        switch (eOpt)
        {
        case EFuncOperator.EFO_Dec:
            nValue -= nChange;
            break;

        case EFuncOperator.EFO_Inc:
            nValue += nChange;
            break;

        case EFuncOperator.EFO_Set:
            nValue = nChange;
            break;
        }

        return(nValue);
    }