예제 #1
0
        public bool RenameDeviceGroup(Guid deviceGroupGuid, DeviceIoType deviceIoType, string title)
        {
            var deviceGroups = GetDeviceGroupList(deviceIoType);

            DeviceGroup.FindDeviceGroup(deviceGroups, deviceGroupGuid).Title = title;
            Context.ContextChanged();
            return(true);
        }
예제 #2
0
        public bool RemoveDeviceGroup(Guid deviceGroupGuid, DeviceIoType deviceIoType)
        {
            var deviceGroups = GetDeviceGroupList(deviceIoType);

            if (!deviceGroups.Remove(DeviceGroup.FindDeviceGroup(deviceGroups, deviceGroupGuid)))
            {
                return(false);
            }
            Context.ContextChanged();
            return(true);
        }