示例#1
0
        /// <summary>
        ///     Converts a VariableModeEnumType into a ModeEnum
        /// </summary>
        /// <param name="mode"></param>
        /// <returns></returns>
        protected static ModeEnum ConvertMode(acceptor.VariableModeEnumType mode)
        {
            ModeEnum retVal = ModeEnum.Unknown;

            switch (mode)
            {
            case acceptor.VariableModeEnumType.aIncoming:
                retVal = ModeEnum.In;
                break;

            case acceptor.VariableModeEnumType.aInOut:
                retVal = ModeEnum.InOut;
                break;

            case acceptor.VariableModeEnumType.aInternal:
                retVal = ModeEnum.Internal;
                break;

            case acceptor.VariableModeEnumType.aOutgoing:
                retVal = ModeEnum.Out;
                break;
            }

            return(retVal);
        }
 public bool setVariableMode_AsString( string  v)
 {
     acceptor.VariableModeEnumType  temp = acceptor.StringTo_Enum_VariableModeEnumType(v);
     if (temp >= 0){
       aVariableMode = temp;
       __setDirty(true);
       NotifyControllers(null);
       return true;
     } // If
     return false;
 }
 public void setVariableMode(acceptor.VariableModeEnumType v)
 {
     aVariableMode = v;
       __setDirty(true);
       NotifyControllers(null);
 }
 public Variable()
 {
     Variable obj = this;
     aTypeName=(null);
     aDefaultValue=(null);
     aVariableMode=(0);
     aSubVariables=(null);
     aWidth=(0);
     aHeight=(0);
     aX=(0);
     aY=(0);
     aHidden=(false);
     aPinned=(false);
 }
 public StructureElement()
 {
     StructureElement obj = this;
     aTypeName=(null);
     aDefault=(null);
     aMode=(0);
 }
 public Variable()
 {
     Variable obj = this;
     aTypeName=(null);
     aDefaultValue=(null);
     aVariableMode=(0);
     aSubVariables=(null);
 }