static void Main(string[] args)
 {
     ICamera cam = Camera.Create();
     var win = new Dear.MrWindows();
     Command command = new Command(win, cam);
     Trigger trigger = new Trigger(cam, command);
     trigger
         .registerNext()
         .registerPrevious()
         .registerOpen();
     cam.Start();
     Console.ReadLine();
 }
Example #2
0
 public Trigger(ICamera camera, Command command)
 {
     this.camera = camera;
     this.command = command;
 }