Exemplo n.º 1
0
        public override string ToString()
        {
            string state;

            if (this.state)
            {
                state = "ON";
            }
            else
            {
                state = "OFF";
            }
            float channel = rChannel.GetChannel();
            int   volume  = rVolume.GetVolume();

            return("Radio " + name + ": " + state + " Volume: " + volume + " Channel: " + channel);
        }
        public override string ToString()
        {
            string state;

            if (this.state)
            {
                state = "ON";
            }
            else
            {
                state = "OFF";
            }


            float channel = mcChannel.GetChannel();
            int   volume  = mcVolume.GetVolume();
            int   numCD   = mcChangeCD.GetCD();

            return("Music Center: " + name + " state: " + state + " mode: " + mcMode.GetMode() + " Volume: " + volume + " Channel: " + channel + " Disk# " + numCD);
        }