void ConnectedDevice_DeviceInformationChange(ConnectedDeviceInformation connectedDevice, ConnectedDeviceEventArgs args) { if (args.EventId == ConnectedDeviceEventIds.ManufacturerEventId) { EdidManufacturerFeedback.FireUpdate(); } else if (args.EventId == ConnectedDeviceEventIds.NameEventId) { EdidNameFeedback.FireUpdate(); } else if (args.EventId == ConnectedDeviceEventIds.PreferredTimingEventId) { EdidPreferredTimingFeedback.FireUpdate(); } else if (args.EventId == ConnectedDeviceEventIds.SerialNumberEventId) { EdidSerialNumberFeedback.FireUpdate(); } }
void ConnectedDevice_DeviceInformationChange(ConnectedDeviceInformation connectedDevice, ConnectedDeviceEventArgs args) { switch (args.EventId) { case ConnectedDeviceEventIds.ManufacturerEventId: EdidManufacturerFeedback.FireUpdate(); break; case ConnectedDeviceEventIds.NameEventId: EdidNameFeedback.FireUpdate(); break; case ConnectedDeviceEventIds.PreferredTimingEventId: EdidPreferredTimingFeedback.FireUpdate(); break; case ConnectedDeviceEventIds.SerialNumberEventId: EdidSerialNumberFeedback.FireUpdate(); break; } }
void HdmiOutput_OutputStreamChange(EndpointOutputStream outputStream, EndpointOutputStreamEventArgs args) { switch (args.EventId) { case EndpointOutputStreamEventIds.FramesPerSecondFeedbackEventId: case EndpointOutputStreamEventIds.VerticalResolutionFeedbackEventId: case EndpointOutputStreamEventIds.HorizontalResolutionFeedbackEventId: VideoOutputResolutionFeedback.FireUpdate(); break; case EndpointOutputStreamEventIds.HotplugDetectedEventId: if (_rmc.HdmiOutput.ConnectedDevice == null) { return; } EdidManufacturerFeedback.FireUpdate(); EdidNameFeedback.FireUpdate(); EdidPreferredTimingFeedback.FireUpdate(); EdidSerialNumberFeedback.FireUpdate(); break; } }