add Programmyday form github
This commit is contained in:
29
TvSteuerung/Program.cs
Normal file
29
TvSteuerung/Program.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user