public void handelMachine(Griller grillerContext)
 {
     Console.WriteLine("{0}: starting to grill the meat", nameof(GrillerStartState));
     grillerContext.GrillerState = new GrillingState();
     grillerContext.GrillerState.handelMachine(grillerContext);
 }
Beispiel #2
0
 public void handelMachine(Griller grillerContext)
 {
     Console.WriteLine("The griller is ready to use");
 }
Beispiel #3
0
        static void Main(string[] args)
        {
            Griller griller = new Griller();

            griller.Grill();
        }
Beispiel #4
0
 public void handelMachine(Griller grillerContext)
 {
     Console.WriteLine("{0}: the meat es ready", nameof(GrillEndState));
     grillerContext.GrillerState = new ReadyState();
     grillerContext.GrillerState.handelMachine(grillerContext);
 }