ArgusTV.Recorder.MediaPortalTvServer.SetupForm.GetLinkedMessageAndColor C# (CSharp) Method

GetLinkedMessageAndColor() private method

private GetLinkedMessageAndColor ( ArgusTV.DataContracts.Channel channel, string &message, Color &rowColor ) : void
channel ArgusTV.DataContracts.Channel
message string
rowColor Color
return void
        private void GetLinkedMessageAndColor(Channel channel, out string message, out Color rowColor)
        {
            bool isAutoLinked;
            bool duplicateChannelsFound;
            LinkedMediaPortalChannel linkedChannel =
               ChannelLinks.GetLinkedMediaPortalChannel(channel, out isAutoLinked, out duplicateChannelsFound);
            if (duplicateChannelsFound)
            {
                message = "More than one channel found, change name or link manually";
                rowColor = Color.Red;
            }
            else if (linkedChannel == null)
            {
                message = "Channel not linked, change name or link manually";
                rowColor = Color.Red;
            }
            else if (isAutoLinked)
            {
                message = "Linked (auto)";
                rowColor = Color.Black;
            }
            else
            {
                message = "Linked to " + linkedChannel.DisplayName;
                rowColor = Color.DarkGreen;
            }
        }