예제 #1
0
        static void Main()
        {
            ScannerWindow viewer;

            ScanEngine[] engines;

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            viewer = new ScannerWindow();

            engines = new ScanEngine[] {
                new UPnP(),
                new Wsdiscovery(),
                new Dahua1(),
                new Dahua2(),
                new Hikvision(),
                new Axis(),
                new Bosch(),
                new GoogleCast(),
                new Hanwha(),
                new Vivotek(),
                new Sony(),
                new _360Vision()
            };
            foreach (var engine in engines)
            {
                engine.registerViewer(viewer);
            }

            Application.Run(viewer);
        }
예제 #2
0
        static void Main()
        {
            ScannerWindow viewer;

            ScanEngine[] engines;
            Dahua1       engineDahua1;
            Dahua2       engineDahua2;

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            viewer = new ScannerWindow();
            // Dahua1 and Dahua2 must be started together because of quirk mode
            engineDahua1 = new Dahua1();
            engineDahua2 = new Dahua2();
            // if Dahua1 is quirk mode, switch Dahua2 to quirk mode
            engineDahua2.quirk = engineDahua1.quirk;


            engines = new ScanEngine[] {
                new UPnP(),
                new Wsdiscovery(),
                engineDahua1,
                engineDahua2,
                new Hikvision(),
                new Axis(),
                new Bosch(),
                new GoogleCast(),

                new Hanwha(),
                new Vivotek(),
                new Sony()
            };
            foreach (var engine in engines)
            {
                engine.registerViewer(viewer);
            }

            Application.Run(viewer);
        }
예제 #3
0
        static void Main()
        {
            ScannerWindow viewer;

            ScanEngine[] engines;

            if (checkAlreadyRunning(true))
            {
                Application.Exit();
                return;
            }

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            viewer = new ScannerWindow();

            engines = new ScanEngine[] {
                new UPnP(),        //  1
                new Wsdiscovery(), //  2
                new Dahua1(),      //  3
                new Dahua2(),      //  4
                new Hikvision(),   //  5
                new Axis(),        //  6
                new Bosch(),       //  7
                new GoogleCast(),  //  8
                new Hanwha(),      //  9
                new Vivotek(),     // 10
                new Sony(),        // 11
                new Ubiquiti(),    // 12
                new _360Vision(),  // 13
                new NiceVision(),  // 14
                new Panasonic(),   // 15
                new Arecont(),     // 16
                new GigEVision(),  // 17
                new Vstarcam(),    // 18
                new Eaton(),       // 19
                null,              //new Foscam(),     // 20
                null,              //new Dlink(),      // 21
                null,              //new Hid(),        // 22
                new Lantronix(),   // 23
                new Microchip(),   // 24
                new Advantech(),   // 25
                new EdenOptima(),  // 26
                null               //new Microsens()   // 27
                // further protocol 28
                // further protocol 29
                // further protocol 30
                // further protocol 31
                // further protocol 32
                // further protocol 33
                // further protocol 34
                // further protocol 35
                // further protocol 36
                // further protocol 37
                // further protocol 38
                // further protocol 39
                // further protocol 40
                // further protocol 41
                // further protocol 42
                // further protocol 43
                // further protocol 44
                // further protocol 45
                // further protocol 46
                // further protocol 47
                // further protocol 48
                // further protocol 49
                // further protocol 50
            };
            for (uint i = 0; i < engines.Length; i++)
            {
                if (engines[i] != null)
                {
                    engines[i].registerViewer(viewer, i + 1);
                }
            }

            Application.Run(viewer);
        }