Exemple #1
0
 public void Delete(InVarObj inVarObj)
 {
     if (!_list.ContainsKey(inVarObj.ID))
     {
         _list.Remove(inVarObj.ID);
     }
 }
Exemple #2
0
 public void Add(InVarObj inVarObj)
 {
     if (!_list.ContainsKey(inVarObj.ID))
     {
         _list.Add(inVarObj.ID, inVarObj);
     }
 }
Exemple #3
0
 public InVarObj this[string invarID]
 {
     get
     {
         InVarObj ctrlVarObj = null;
         if (_list.ContainsKey(invarID))
         {
             ctrlVarObj = (InVarObj)_list[invarID];
         }
         return(ctrlVarObj);
     }
 }
Exemple #4
0
 public InVarObj this[int indx]
 {
     get
     {
         InVarObj ctrlVarObj = null;
         if (_list.Count > 0 && indx < _list.Count)
         {
             ctrlVarObj = (InVarObj)_list.GetByIndex(indx);
         }
         return(ctrlVarObj);
     }
 }
Exemple #5
0
 public bool SetInvarData(ProCommon.Communal.InVarObj inVarObj, int num, double[] dData)
 {
     return(DoSetInvarData(inVarObj, num, dData));
 }
Exemple #6
0
 protected abstract bool DoSetInvarData(ProCommon.Communal.InVarObj inVarObj, int num, double[] dData);
Exemple #7
0
        /// <summary>
        /// 控制变量对象复制
        /// </summary>
        /// <returns></returns>
        public InVarObj Clone()
        {
            InVarObj ctrlVarObj = new InVarObj(this.ID);

            return(ctrlVarObj);
        }