/// <summary> /// Returns a verbose indented string for debugging /// </summary> /// <returns>a debugging string</returns> public override string ToString() { return (" ForegroundColor: " + ForegroundColor.ToString() + "\n" + " ForegroundRgb: " + (ForegroundRgb == null ? "<null>" : ForegroundRgb.ToString()) + "\n" + " BackgroundColor: " + BackgroundColor.ToString() + "\n" + " BackgroundRgb: " + (BackgroundRgb == null ? "<null>" : BackgroundRgb.ToString()) + "\n" + " Bright: " + Bright.ToString() + "\n" + " Standout: " + Standout.ToString() + "\n" + " Underscore: " + Underscore.ToString() + "\n" + " Blink: " + Blink.ToString() + "\n" + " Reverse: " + Reverse.ToString() + "\n" + " Hidden: " + Hidden.ToString() + "\n" + " Protected: " + Protected.ToString() + "\n" ); }
public override string ToString() { string channelName; string channelNumber; string volume; string bright; if (State) { channelName = tvChannelList[Channel]; channelNumber = Channel.ToString(); volume = Volume.ToString(); bright = Bright.ToString(); } else { channelName = "--"; channelNumber = "--"; volume = "--"; bright = "--"; } return(base.ToString() + "<br />" + "Channel: " + channelNumber + " : " + channelName + "<br />" + "Volume: " + volume + "<br />" + "Bright: " + bright); }