Beispiel #1
0
        public override void Dispose()
        {
            JSRunner.DestroyNumericEdit(ElementId, ElementRef);
            JSRunner.DisposeDotNetObjectRef(dotNetObjectRef);

            base.Dispose();
        }
Beispiel #2
0
        /// <inheritdoc/>
        protected override void Dispose(bool disposing)
        {
            if (disposing && Rendered)
            {
                JSRunner.DestroyFileEdit(ElementRef, ElementId);
                JSRunner.DisposeDotNetObjectRef(dotNetObjectRef);
            }

            base.Dispose(disposing);
        }
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                JSRunner.DestroyNumericEdit(ElementId, ElementRef);
                JSRunner.DisposeDotNetObjectRef(dotNetObjectRef);
            }

            base.Dispose(disposing);
        }
        public void Dispose()
        {
            // make sure to unregister listener
            if (isRegistered)
            {
                isRegistered = false;

                JSRunner.UnregisterClosableComponent(this);
                JSRunner.DisposeDotNetObjectRef(dotNetObjectRef);
            }
        }
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                // make sure to unregister listener
                if (isRegistered)
                {
                    isRegistered = false;

                    JSRunner.UnregisterClosableComponent(this);
                    JSRunner.DisposeDotNetObjectRef(dotNetObjectRef);
                }
            }

            base.Dispose(disposing);
        }
Beispiel #6
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                // make sure to unregister listener
                if (Rendered)
                {
                    _ = JSRunner.UnregisterBreakpointComponent(this);

                    JSRunner.DisposeDotNetObjectRef(dotNetObjectRef);
                }

                if (NavigationBreakpoint != Breakpoint.None)
                {
                    NavigationManager.LocationChanged -= OnLocationChanged;
                }
            }

            base.Dispose(disposing);
        }
Beispiel #7
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (ParentBarDropdown != null)
                {
                    ParentBarDropdown.StateChanged -= OnBarDropdownStateChanged;
                }

                // make sure to unregister listener
                if (isRegistered)
                {
                    isRegistered = false;

                    _ = JSRunner.UnregisterClosableComponent(this);
                }

                JSRunner.DisposeDotNetObjectRef(dotNetObjectRef);
            }

            base.Dispose(disposing);
        }