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