Exemplo n.º 1
0
        public override void Destroy()
        {
            if (declarationviewwindow != null)
            {
                declarationviewwindow.Destroy();
                declarationviewwindow = null;
            }

            if (mutableList != null)
            {
                mutableList.Changing -= OnCompletionDataChanging;
                mutableList.Changed  -= OnCompletionDataChanged;
                mutableList           = null;
            }

            if (completionDataList != null)
            {
                if (completionDataList is IDisposable)
                {
                    ((IDisposable)completionDataList).Dispose();
                }
                completionDataList = null;
            }

            if (closedDelegate != null)
            {
                closedDelegate();
                closedDelegate = null;
            }
            base.Destroy();
        }
Exemplo n.º 2
0
        protected override void OnDestroyed()
        {
            HideDeclarationView();

            if (declarationviewwindow != null)
            {
                declarationviewwindow.Destroy();
                declarationviewwindow = null;
            }
            base.OnDestroyed();
        }
Exemplo n.º 3
0
        protected override void OnDestroyed()
        {
            if (declarationviewwindow != null)
            {
                declarationviewwindow.Destroy();
                declarationviewwindow = null;
            }

            if (mutableList != null)
            {
                mutableList.Changing -= OnCompletionDataChanging;
                mutableList.Changed  -= OnCompletionDataChanged;
                mutableList           = null;
            }

            if (completionDataList != null)
            {
                if (completionDataList is IDisposable)
                {
                    ((IDisposable)completionDataList).Dispose();
                }
                CloseCompletionList();
                completionDataList = null;
            }

            if (closedDelegate != null)
            {
                closedDelegate();
                closedDelegate = null;
            }

            HideDeclarationView();

            if (declarationviewwindow != null)
            {
                declarationviewwindow.Destroy();
                declarationviewwindow = null;
            }
            base.OnDestroyed();
        }