예제 #1
0
        public override void Cleanup()
        {
            var listeners = RequestClose?.GetInvocationList();

            if (listeners?.Length > 0)
            {
                foreach (var listener in listeners)
                {
                    RequestClose -= listener as EventHandler;
                }
            }

            RequestClose = null;

            base.Cleanup();
        }
예제 #2
0
        protected override void OnDispose()
        {
            var listeners = RequestClose?.GetInvocationList();

            if (listeners?.Length > 0)
            {
                foreach (var listener in listeners)
                {
                    RequestClose -= listener as EventHandler;
                }
            }

            RequestClose = null;

            base.OnDispose();
        }