public override void RepairsHandler(object sender, RepairEventArgs e) { if (e.Repairs.approved == false) { Console.WriteLine("Diagnosed car for repairs"); } else { Console.WriteLine("Made repairs"); } SuccessorA.RepairsHandler(this, e); }
public override void RepairsHandler(object sender, RepairEventArgs e) { if (e.Repairs.approved == false) { Console.WriteLine("Created new schedule for car repair"); SuccessorA.RepairsHandler(this, e); } else { Console.WriteLine("Billed customer for work rendered"); } }
public override void RepairsHandler(object sender, RepairEventArgs e) { if (e.Repairs.approved == false) { e.Repairs.approved = true; Console.WriteLine("Approved parts & labor for repairs"); SuccessorA.RepairsHandler(this, e); } else { Console.WriteLine("Approved repaired car"); SuccessorB.RepairsHandler(this, e); } }