Пример #1
0
            public ServiceListItem(Enums.DutService service)
            {
                Service = service;
                switch (service)
                {
                case Enums.DutService.DeviceManagement:
                    DisplayName = "Device Management";
                    break;

                case Enums.DutService.Event:
                    DisplayName = "Event";
                    break;

                case Enums.DutService.Media:
                    DisplayName = "Media";
                    break;

                case Enums.DutService.PTZ:
                    DisplayName = "PTZ";
                    break;

                case Enums.DutService.AccessControl:
                    DisplayName = "Access Control";
                    break;

                case Enums.DutService.DoorControl:
                    DisplayName = "Door Control";
                    break;

                default:
                    DisplayName = service.ToString();
                    break;
                }
            }
Пример #2
0
            public ServiceListItem(Enums.DutService service)
            {
                Service = service;
                switch (service)
                {
                case Enums.DutService.DeviceManagement:
                    DisplayName = "Device Management";
                    break;

                case Enums.DutService.Event:
                    DisplayName = "Event";
                    break;

                case Enums.DutService.Media:
                    DisplayName = "Media";
                    break;

                case Enums.DutService.PTZ:
                    DisplayName = "PTZ";
                    break;
                }
            }