29 lines
863 B
C#
29 lines
863 B
C#
namespace TvSteuerung
|
|
{
|
|
internal class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
TV tvstatus = new TV();
|
|
Console.Write("Tv status: ");
|
|
tvstatus.SetSwitchedOn(Console.ReadLine());
|
|
tvstatus.GetInfostatus();
|
|
|
|
Console.Write("Programm auswählen: ");
|
|
tvstatus.SetChannel(Console.ReadLine());
|
|
tvstatus.GetInfoChannel();
|
|
|
|
Console.Write("Lautstärke: ");
|
|
tvstatus.SetVolume(Convert.ToInt16(Console.ReadLine()));
|
|
tvstatus.GetInfoVolum();
|
|
|
|
Console.Write("Lauter: ");
|
|
tvstatus.SetRaiseVolume(Console.ReadLine());
|
|
tvstatus.GetInfoVolum();
|
|
|
|
Console.Write("leiser: ");
|
|
tvstatus.SetLowerVolume(Console.ReadLine());
|
|
tvstatus.GetInfoVolum();
|
|
}
|
|
}
|
|
} |