Пример #1
0
 public EnumParameterController(EnumParameter m)
 {
     if (m == null)
     {
         throw new ArgumentNullException("m");
     }
     _m = m;
 }
Пример #2
0
 public EnumParameterController(EnumParameter m)
 {
     if (m == null)
     {
         throw new ArgumentNullException("m");
     }
     _m = m;
 }
Пример #3
0
        private IParameter GetFluxPlaceParameter()
        {
            IParameter p = this.GeneralGroup.Parameters[PN_FLUXPLACE];

            if (p == null)
            {
                p      = new EnumParameter(PN_FLUXPLACE, typeof(FluxPlace), FluxPlace.Unknown, PO_FLUXPLACE);
                p.Text = "位置";
                this.GeneralGroup.Parameters.Add(p);
            }

            return(p);
        }
Пример #4
0
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        private IParameter GetHeatTransferModeParameter()
        {
            IParameter p = this.GeneralGroup.Parameters[PN_HEATTRANSFERMODE];

            if (p == null)
            {
                p = new EnumParameter(
                        PN_HEATTRANSFERMODE,
                        typeof(ModeValue),
                        ModeValue.Mixed,
                        PO_HEATTRANSFERMODE);

                p.Text = "���ȷ�ʽ";
                this.GeneralGroup.Parameters.Add(p);
            }
            return p;
        }
Пример #5
0
        private IParameter GetFluxPlaceParameter()
        {
            IParameter p = this.GeneralGroup.Parameters[PN_FLUXPLACE];
            if (p == null)
            {
                p = new EnumParameter(PN_FLUXPLACE, typeof(FluxPlace), FluxPlace.Unknown, PO_FLUXPLACE);
                p.Text = "�";
                this.GeneralGroup.Parameters.Add(p);
            }

            return p;
        }