Beispiel #1
0
        public DeviceGroup GetDeviceGroup(DeviceIoType deviceIoType)
        {
            var deviceGroupGuid = GetDeviceGroupGuid(deviceIoType);

            if (deviceGroupGuid.Equals(Guid.Empty))
            {
                return(ParentProfile?.GetDeviceGroup(deviceIoType));
            }
            return(Context.DeviceGroupsManager.GetDeviceGroup(deviceIoType, deviceGroupGuid));
        }
Beispiel #2
0
        public string GetInheritedDeviceGroupName(DeviceIoType deviceIoType)
        {
            var parentDeviceGroupName = "None";
            var parentDeviceGroup     = ParentProfile?.GetDeviceGroup(deviceIoType);

            if (parentDeviceGroup != null)
            {
                parentDeviceGroupName = parentDeviceGroup.Title;
            }
            if (ParentProfile != null)
            {
                parentDeviceGroupName += " (Inherited)";
            }
            return(parentDeviceGroupName);
        }