public void AddSensor(Sensor sensor) { if (sensor.Name != "" && This.GetSensor(sensor.Name) == null) { This.AddSensor(sensor); SensorList.Add(new SensorViewModel(sensor)); } }