示例#1
0
        protected override void OnClosed(EventArgs e)
        {
            messageInterceptor?.ReleaseHandle();
            messageInterceptor?.DestroyHandle();
            messageInterceptor = null;


            base.OnClosed(e);

            nativeForm?.ReleaseHandle();
            nativeForm?.DestroyHandle();
        }
示例#2
0
        protected void Dispose()
        {
            if (messageInterceptor != null)
            {
                messageInterceptor.ReleaseHandle();

                messageInterceptor.DestroyHandle();
            }

            messageInterceptor = null;

            if (nativeForm != null)
            {
                nativeForm.ReleaseHandle();
                nativeForm.DestroyHandle();
            }
        }
示例#3
0
        protected override void OnClosed(EventArgs e)
        {
            if (messageInterceptor != null)
            {
                messageInterceptor.ReleaseHandle();

                messageInterceptor.DestroyHandle();
            }

            messageInterceptor = null;


            base.OnClosed(e);

            if (nativeForm != null)
            {
                nativeForm.ReleaseHandle();
                nativeForm.DestroyHandle();
            }
        }