Advertisement
Guest User

Untitled

a guest
Jun 19th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Bridge
  8. {
  9. class FlateWithZWave : Application
  10. {
  11. protected override ICinema CreateCinema()
  12. {
  13. IRelay projector, lamp1, lamp2;
  14. IEngine engine1, engine2;
  15. projector = new RelayZWave();
  16. lamp1 = new RelayZWave();
  17. lamp2 = new RelayZWave();
  18. engine1 = new StepMotor();
  19. engine2 = new StepMotor();
  20. return new CinemaCottadge(projector, lamp1, lamp2, engine1, engine2);
  21. }
  22. }
  23.  
  24. class Program
  25. {
  26. static void Main(string[] args)
  27. {
  28. FlateWithZWave flatWithZWave = new FlateWithZWave();
  29. flatWithZWave.Run();
  30. Console.WriteLine("--------------------------------------------------------------------------");
  31. Console.ReadKey();
  32. }
  33. }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement