/// <summary> /// Clears the configurations. /// </summary> private void ClearConfig() { Positions.Clear(); Relays.Clear(); Sections.Clear(); Sensors.Clear(); Switchs.Clear(); }
private void SetIOData() { Response r = JsonConvert.DeserializeObject <Response>(Response); if (r.io.di != null) { DIs.Clear(); foreach (DigitalInput di in r.io.di) { DIs.Insert(di.diIndex, di); } } if (r.io.relay != null) { Relays.Clear(); foreach (Relay relay in r.io.relay) { Relays.Insert(relay.relayIndex, relay); } } }