SampleApp.MainForm.Disconnect C# (CSharp) 메소드

Disconnect() 개인적인 메소드

private Disconnect ( ) : void
리턴 void
        private void Disconnect( )
        {
            if ( videoSourcePlayer.VideoSource != null )
            {
                // stop video device
                videoSourcePlayer.SignalToStop( );
                videoSourcePlayer.WaitForStop( );
                videoSourcePlayer.VideoSource = null;

                if ( videoDevice.ProvideSnapshots )
                {
                    videoDevice.SnapshotFrame -= new NewFrameEventHandler( videoDevice_SnapshotFrame );
                }

                EnableConnectionControls( true );
            }
        }
MainForm