Example #1
0
        /// <inheritdoc/>
        public override void Destroy()
        {
            // Close function editor
            // TODO: Make this non-blocking (need async Destroy)
            SwitchFunctionEditor(selectedMethod, null).Wait();

            // Stop listening to changes
            Session.AssetPropertiesChanged -= Session_AssetPropertiesChanged;

            sourceResolver.LatestCompilationChanged -= CompilationUpdated;

            properties.Destroy();

            base.Destroy();
        }