public bool RenameDeviceGroup(Guid deviceGroupGuid, DeviceIoType deviceIoType, string title) { var deviceGroups = GetDeviceGroupList(deviceIoType); DeviceGroup.FindDeviceGroup(deviceGroups, deviceGroupGuid).Title = title; Context.ContextChanged(); return(true); }
public bool RemoveDeviceGroup(Guid deviceGroupGuid, DeviceIoType deviceIoType) { var deviceGroups = GetDeviceGroupList(deviceIoType); if (!deviceGroups.Remove(DeviceGroup.FindDeviceGroup(deviceGroups, deviceGroupGuid))) { return(false); } Context.ContextChanged(); return(true); }