Beispiel #1
0
        //增加标题第三行,服务器还是客户端
        protected virtual void ReadHeaderRow3(string cellValue, int colIdx /*0开始*/)
        {
            ERangeType rangeType = ERangeType.Both;
            string     lStr      = cellValue.ToLower();

            if (lStr.Contains("server"))
            {
                rangeType = ERangeType.Server;
            }
            else if (lStr.Contains("client"))
            {
                rangeType = ERangeType.Client;
            }
            else if (lStr.Contains("none"))
            {
                rangeType = ERangeType.None;
            }
            else
            {
                rangeType = ERangeType.Both;
            }
            while (mRangeType.Count <= colIdx)
            {
                mRangeType.Add(ERangeType.Both);
            }
            mRangeType[colIdx] = rangeType;
        }
 public void build_values(int min, int max, ERangeType type)
 {
     modshogunPINVOKE.ModelSelectionParameters_build_values__SWIG_5(swigCPtr, min, max, (int)type);
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public void build_values(double min, double max, ERangeType type, double step, double type_base)
 {
     modshogunPINVOKE.ModelSelectionParameters_build_values__SWIG_0(swigCPtr, min, max, (int)type, step, type_base);
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public void build_values(int min, int max, ERangeType type, int step) {
   modshogunPINVOKE.ModelSelectionParameters_build_values__SWIG_4(swigCPtr, min, max, (int)type, step);
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
 public void build_values(double min, double max, ERangeType type, double step, double type_base) {
   modshogunPINVOKE.ModelSelectionParameters_build_values__SWIG_0(swigCPtr, min, max, (int)type, step, type_base);
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }