Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Bridge
- {
- class FlateWithZWave : Application
- {
- protected override ICinema CreateCinema()
- {
- IRelay projector, lamp1, lamp2;
- IEngine engine1, engine2;
- projector = new RelayZWave();
- lamp1 = new RelayZWave();
- lamp2 = new RelayZWave();
- engine1 = new StepMotor();
- engine2 = new StepMotor();
- return new CinemaCottadge(projector, lamp1, lamp2, engine1, engine2);
- }
- }
- class Program
- {
- static void Main(string[] args)
- {
- FlateWithZWave flatWithZWave = new FlateWithZWave();
- flatWithZWave.Run();
- Console.WriteLine("--------------------------------------------------------------------------");
- Console.ReadKey();
- }
- }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement