void Save() { Debug.WriteLine("Save!!"); //foreach (EndDevice endDevice in LightDeviceListSources) //{ // foreach (EndPoint endPoint in endDevice.EndPoints) { // Debug.WriteLine(string.Format("endPoint.Id {0} # endPoint.CustomName {1}", endPoint.Id, endPoint.CustomName)); // } //} SensorDeviceService.SetSensors(SensorType, SensorDeviceListSources); }
void GetSensorList(string sensorType) { ObservableCollection <Models.Sensor> list = SensorDeviceService.GetSensorList(sensorType); SensorDeviceListSources.Clear(); foreach (Models.Sensor itm in list) { SensorDeviceListSources.Add(itm); } list.Clear(); list = null; }