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; } }
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; } }