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); } }
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 { } } }