static void Main(string[] args) { Console.WriteLine("Start!"); DiagnoseAdapter dp = new DiagnoseAdapter(); CarDisplay cd = new CarDisplay(dp); dp.CreateTestFehler(); Console.WriteLine("Ende!"); }
public CarDisplay(DiagnoseAdapter dp) { dp.Meldung += StatusChange; }