public void changeSetting(int bedId, Bed bed) { if (bedId >= 0 && bedId < 8) { _ListBedModules[bedId].HeartRateEnabled = bed.HeartRateEnabled; _ListBedModules[bedId].PulseRateEnabled = bed.PulseRateEnabled; _ListBedModules[bedId].TemparatureEnabled = bed.TemparatureEnabled; _ListBedModules[bedId].BloodPressureEnabled = bed.BloodPressureEnabled; } }
public void setDefaultModuleSetting() { Bed bed; if (_ListBedModules.Count > 0 && _ListBedModules != null) { _ListBedModules = new List <Bed>(); } for (int i = 0; i < 8; i++) { bed = new Bed(); bed.BloodPressureEnabled = true; bed.HeartRateEnabled = true; bed.TemparatureEnabled = true; bed.PulseRateEnabled = true; _ListBedModules.Add(bed); } }