Beispiel #1
0
 public void Delelet(ProCommon.Communal.PlcProperty plcProperty)
 {
     if (_list.ContainsKey(plcProperty.ID))
     {
         _list.Remove(plcProperty.ID);
     }
 }
Beispiel #2
0
 public void Add(ProCommon.Communal.PlcProperty plcProperty)
 {
     if (!_list.ContainsKey(plcProperty.ID))
     {
         _list.Add(plcProperty.ID, plcProperty);
     }
 }
Beispiel #3
0
 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);
     }
 }
Beispiel #4
0
 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);
     }
 }