Ejemplo n.º 1
0
        public FormLife()
        {
            InitializeComponent();

            dpsMaster      = new ucDetectProcesShow();
            dpsMaster.Dock = DockStyle.Fill;
            scMaster.Panel1.Controls.Add(dpsMaster);

            dpsSlave      = new ucDetectProcesShow();
            dpsSlave.Dock = DockStyle.Fill;
            scSlave.Panel1.Controls.Add(dpsSlave);


            bvMaster      = new ucBlobsView();
            bvMaster.Dock = DockStyle.Fill;
            scMaster.Panel2.Controls.Add(bvMaster);
            bvMaster.indexChanged += new ucBlobsView.indexChangedHandle(masterListViewIndexChanged);

            bvSlave      = new ucBlobsView();
            bvSlave.Dock = DockStyle.Fill;
            scSlave.Panel2.Controls.Add(bvSlave);

//            devSet = new ucDeviceSetting {Dock = DockStyle.Bottom};
//            gbDev.Controls.Add(devSet);

            for (var i = ThresholdType.Binary; i <= (ThresholdType)7; i++)
            {
                cbBinMethodMaster.Items.Add(i);
            }

            listMaster = new List <bool>();
            listSlave  = new List <bool>();
        }
Ejemplo n.º 2
0
        public void Compare(long cnt_slave, ucBlobsView master, ucBlobsView slave, List <long[]> mslink)
        {
            var bgwMSCompare = new BackgroundWorker();

            bgwMSCompare.DoWork += new DoWorkEventHandler(doMSCompareBlobsView);

            if (ComplitParticle != null)
            {
                bgwMSCompare.RunWorkerCompleted += new RunWorkerCompletedEventHandler(ComplitParticle);
            }

            var arg = new ArrayList();

            arg.Add(master);
            arg.Add(slave);
            arg.Add(mslink);
            arg.Add(cnt_slave);

            bgwMSCompare.RunWorkerAsync(arg);
        }