示例#1
0
        private static void RefreshDisplay(OnAirStatus onAirStatus)
        {
            form.UpdateOnAirStatus(onAirStatus);
            var displayUpdateResult = display.UpdateDisplay(onAirStatus);
            var communicationStatus = display.GetConnectionStatus();
            var errorMessage        = displayUpdateResult != 0 ? "Communication Error" : communicationStatus;

            form.UpdateCommunicationStatusError(errorMessage);
        }