public void Delelet(ProCommon.Communal.PlcProperty plcProperty) { if (_list.ContainsKey(plcProperty.ID)) { _list.Remove(plcProperty.ID); } }
public void Add(ProCommon.Communal.PlcProperty plcProperty) { if (!_list.ContainsKey(plcProperty.ID)) { _list.Add(plcProperty.ID, plcProperty); } }
public ProCommon.Communal.PlcProperty this[string plcPropertyID] { get { ProCommon.Communal.PlcProperty brd = null; if (_list.ContainsKey(plcPropertyID)) { brd = (ProCommon.Communal.PlcProperty)_list[plcPropertyID]; } return(brd); } }
public ProCommon.Communal.PlcProperty this[int indx] { get { ProCommon.Communal.PlcProperty plc = null; if (_list.Count > 0 && indx >= 0 && indx < _list.Count) { plc = (ProCommon.Communal.PlcProperty)_list.GetByIndex(indx); } return(plc); } }