コード例 #1
0
        internal VegNo_1(PFSSection Section)
        {
            _pfsHandle = Section;

            for (int i = 1; i <= Section.GetSectionsNo(); i++)
            {
                PFSSection sub = Section.GetSection(i);
                switch (sub.Name)
                {
                case "UserDefVegDevelopment":
                    _userDefVegDevelopment = new UserDefVegDevelopment(sub);
                    break;

                case "GrowthModVegDevelopment":
                    _growthModVegDevelopment = new GrowthModVegDevelopment(sub);
                    break;

                case "Irrigation":
                    _irrigation = new Irrigation(sub);
                    break;

                default:
                    if (sub.Name.Substring(0, 6).Equals("Stage_"))
                    {
                        _stage_1s.Add(new Stage_13(sub));
                        break;
                    }
                    _unMappedSections.Add(sub.Name);
                    break;
                }
            }
        }
コード例 #2
0
ファイル: VegNo_1.cs プロジェクト: XiBeichuan/hydronumerics
    internal VegNo_1(PFSSection Section)
    {
      _pfsHandle = Section;

      for (int i = 1; i <= Section.GetSectionsNo(); i++)
      {
        PFSSection sub = Section.GetSection(i);
        switch (sub.Name)
        {
        case "UserDefVegDevelopment":
          _userDefVegDevelopment = new UserDefVegDevelopment(sub);
          break;
        case "GrowthModVegDevelopment":
          _growthModVegDevelopment = new GrowthModVegDevelopment(sub);
          break;
        case "Irrigation":
          _irrigation = new Irrigation(sub);
          break;
          default:
            if (sub.Name.Substring(0,6).Equals("Stage_"))
            {
              _stage_1s.Add(new Stage_13(sub));
              break;
            }
            _unMappedSections.Add(sub.Name);
          break;
        }
      }
    }