예제 #1
0
 public ParmTreeNode(ModelParameterGroupClass aGroup, ParameterManagerClass aPM) : base(aGroup.Name)
 {
     FPM                = aPM;
     ThisGroup          = aGroup;
     ImageIndex         = 4;
     SelectedImageIndex = 5;
     foreach (ModelParameterGroupClass groupitem in aGroup.Groups())
     {
         Add(groupitem);
     }
     foreach (int parmcode in aGroup.ModelParameters())
     {
         Add(parmcode);
     }
 }
예제 #2
0
 static void AddGroupToParameterTopics(ParameterManagerClass PM, ModelParameterGroupClass TheGroup)
 {
     foreach (int eModCode in TheGroup.ModelParameters())
     {
         try
         {
             ModelParameterClass MP = PM.Model_Parameter(eModCode);
             if (MP != null)
             {
                 MP.TopicGroups.Add(TheGroup);
             }
         }
         finally
         {
         }
     }
 }