Пример #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);
            }
        }
Пример #2
0
 private void snapshotForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     snapshotForm = null;
 }
Пример #3
0
 private void snapshotForm_FormClosed( object sender, FormClosedEventArgs e )
 {
     snapshotForm = null;
 }
Пример #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 );
            }
        }