public bool RunFuncOnParamInfo(MssParameterID variableParamId, ParamInfoAccessor variableParamAccessor)
 {
     lock (this.memberLock)
     {
         //TODO: impliment This.
         bool variableParamIdIsValid = this.variableParamDict.ContainsKey(variableParamId);
         if (variableParamIdIsValid)
         {
             variableParamAccessor(this.variableParamDict[variableParamId]);
             return true;
         }
         else
         {
             return false;
         }
     }
 }
Exemplo n.º 2
0
 public bool RunFuncOnParamInfo(MssParameterID variableParamId, ParamInfoAccessor variableParamAccessor)
 {
     lock (this.memberLock)
     {
         //TODO: impliment This.
         bool variableParamIdIsValid = this.variableParamDict.ContainsKey(variableParamId);
         if (variableParamIdIsValid)
         {
             variableParamAccessor(this.variableParamDict[variableParamId]);
             return(true);
         }
         else
         {
             return(false);
         }
     }
 }
 protected bool RunFuncOnParamInfo(MssParameterID paramId, ParamInfoAccessor paramAccessor)
 {
     if (VARIABLE_PARAM_ID_LIST.Contains(paramId))
     {
         return(this.variableParamMgr.RunFuncOnParamInfo(paramId, paramInfo => paramAccessor(paramInfo)));
     }
     else if (PRESET_PARAM_ID_LIST.Contains(paramId))
     {
         return(this.activeMappingInfo.GetActiveGraphableEntryManager().RunFuncOnMappingEntry(this.activeMappingInfo.ActiveGraphableEntryId,
                                                                                              (mappingEntry) => {
             int paramIndex = PRESET_PARAM_ID_LIST.IndexOf(paramId);
             MssParamInfo paramInfo = mappingEntry.CurveShapeInfo.ParamInfoList[paramIndex];
             paramAccessor(paramInfo);
         }));
     }
     else
     {
         //every possible MssParameterID should either be contained in VARIABLE_PARAM_ID_LIST or PRESET_PARAM_ID_LIST.
         Debug.Assert(false);
         return(false);
     }
 }
Exemplo n.º 4
0
 protected bool RunFuncOnParamInfo(MssParameterID paramId, ParamInfoAccessor paramAccessor)
 {
     if (VARIABLE_PARAM_ID_LIST.Contains(paramId))
     {
         return this.variableParamMgr.RunFuncOnParamInfo(paramId, paramInfo => paramAccessor(paramInfo));
     }
     else if (PRESET_PARAM_ID_LIST.Contains(paramId))
     {
         return this.activeMappingInfo.GetActiveGraphableEntryManager().RunFuncOnMappingEntry(this.activeMappingInfo.ActiveGraphableEntryId,
             (mappingEntry) => {
                 int paramIndex = PRESET_PARAM_ID_LIST.IndexOf(paramId);
                 MssParamInfo paramInfo = mappingEntry.CurveShapeInfo.ParamInfoList[paramIndex];
                 paramAccessor(paramInfo);
             });
     }
     else
     {
         //every possible MssParameterID should either be contained in VARIABLE_PARAM_ID_LIST or PRESET_PARAM_ID_LIST.
         Debug.Assert(false);
         return false;
     }
 }