Exemple #1
0
        private void ShowSnapshot(Bitmap snapshot)
        {
            if (InvokeRequired)
            {
                Invoke(new Action <Bitmap>(ShowSnapshot), snapshot);
            }
            else
            {
                if (snapshotForm == null)
                {
                    snapshotForm             = new SnapshotForm( );
                    snapshotForm.FormClosed += new FormClosedEventHandler(snapshotForm_FormClosed);
                    snapshotForm.Show( );
                }

                snapshotForm.SetImage(snapshot);
            }
        }
Exemple #2
0
        private void ShowSnapshot(Bitmap snapshot)
        {
            if (checkBox_calibrated.Checked == false)
            {
                if (InvokeRequired)
                {
                    Invoke(new Action <Bitmap>(ShowSnapshot), snapshot);
                }
                else
                {
                    if (snapshotForm == null)
                    {
                        snapshotForm             = new SnapshotForm();
                        snapshotForm.FormClosed += new FormClosedEventHandler(snapshotForm_FormClosed);
                        snapshotForm.Show();
                    }

                    snapshotForm.SetImage(snapshot);
                }
            }
            else // rozpoznajemy
            {
                if (InvokeRequired)
                {
                    Invoke(new Action <Bitmap>(ShowSnapshot), snapshot);
                }
                else
                {
                    if (snapshotForm == null)
                    {
                        recognizeform             = new RecognizeForm();
                        recognizeform.FormClosed += new FormClosedEventHandler(recognizeform_FormClosed);
                        recognizeform.Show();
                    }

                    recognizeform.SetImage(snapshot);
                }
            }
        }
Exemple #3
0
 private void snapshotForm_FormClosed( object sender, FormClosedEventArgs e )
 {
     snapshotForm = null;
 }
Exemple #4
0
        private void ShowSnapshot( Bitmap snapshot )
        {
            if ( InvokeRequired )
            {
                Invoke( new Action<Bitmap>( ShowSnapshot ), snapshot );
            }
            else
            {
                if ( snapshotForm == null )
                {
                    snapshotForm = new SnapshotForm( );
                    snapshotForm.FormClosed += new FormClosedEventHandler( snapshotForm_FormClosed );
                    snapshotForm.Show( );
                }

                snapshotForm.SetImage( snapshot );
            }
        }
Exemple #5
0
 private void snapshotForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     snapshotForm = null;
 }
Exemple #6
0
        private void ShowSnapshot( Bitmap snapshot )
        {
            if ( InvokeRequired )
            {
                ShowSnapshotCallback d = new ShowSnapshotCallback( ShowSnapshot );
                Invoke( d, new object[] { snapshot } );
            }
            else
            {
                if ( snapshotForm == null )
                {
                    snapshotForm = new SnapshotForm( );
                    snapshotForm.FormClosed += new FormClosedEventHandler( snapshotForm_FormClosed );
                    snapshotForm.Show( );
                }

                snapshotForm.SetImage( snapshot );
            }
        }
Exemple #7
0
 private void snapshotForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     snapshotForm = null;
     checkBox_calibrated.Checked = true;
 }