Example #1
0
 public void GetHelp(HelpItem item)
 {
     if (item == HelpItem.Backend)
     {
         Console.WriteLine("Backend is for DB Communication");
     }
     else
     {
         successor.GetHelp(item);
     }
 }
 public void GetHelp(int helpConstant)
 {
     if (helpConstant != INTERMEDIATE_LAYER_HELP)
     {
         successor.GetHelp(helpConstant);
     }
     else
     {
         Console.WriteLine("This is the intermediate layer.Nice, eh ?");
     }
 }
Example #3
0
 public void GetHelp(HelpItem item)
 {
     if (item == HelpItem.FrontEnd)
     {
         Console.WriteLine("Front end is for UI");
     }
     else
     {
         successor.GetHelp(item);
     }
 }
 public void GetHelp(int helpConstant)
 {
     if (helpConstant != FRONT_END_HELP)
     {
         successor.GetHelp(helpConstant);
     }
     else
     {
         Console.WriteLine("This is the front end.Don’t you like it ?");
     }
 }
Example #5
0
 public void GetHelp(HelpItem item)
 {
     if (item == HelpItem.IntermediateLayer)
     {
         Console.WriteLine("IntermediateLayer is for Business Logic");
     }
     else
     {
         successor.GetHelp(item);
     }
 }