Exemple #1
0
        void XferNotify(object sender, SapXferNotifyEventArgs argsNotify)
        {
            TransferNotifyEventArgs transferNotifyEventArgs = new TransferNotifyEventArgs(argsNotify);

            FrameCaptured?.Invoke(transferNotifyEventArgs);
            //  instance.FrameCaptured?.Invoke(new TransferNotifyEventArgs(argsNotify));

            //GrabDemoDlg GrabDlg = argsNotify.Context as GrabDemoDlg;
            //// If grabbing in trash buffer, do not display the image, update the
            //// appropriate number of frames on the status bar instead
            //if (argsNotify.Trash)
            //    GrabDlg.Invoke(new DisplayFrameAcquired(GrabDlg.ShowFrameNumber), argsNotify.EventCount, true);
            //// Refresh view
            //else
            //{
            //    GrabDlg.Invoke(new DisplayFrameAcquired(GrabDlg.ShowFrameNumber), argsNotify.EventCount, false);
            //    GrabDlg.m_View.Show();
            //}
        }
Exemple #2
0
 private void Frame_Captured(TransferNotifyEventArgs argsNotify)
 {
     // LsoViewerDlg.Invoke(new DisplayFrameAcquired(LsoViewerDlg.ShowFrameNumber), argsNotify.EventCount, false);
     //  ShowFrameNumber(argsNotify.EventCount, false);
     lsloImageBox.View.Show();
 }
Exemple #3
0
 private void OctCamera_FrameCaptured(TransferNotifyEventArgs argsNotify)
 {
     octImageBox.View.Show();
 }