Option Strict On
Option Explicit On

Imports System
Imports System.Collections.Generic
Imports System.Windows.Forms
Imports Nexamas.UI.Components
Imports Nexamas.UI.General
Imports Nexamas.UI.Rendering
Imports Nexamas.UI.Scroll
Imports Nexamas.UI.SkiaScroll
Imports Nexamas.UI.Theming
Imports Nexamas.UI.Layout
Imports SkiaSharp

Namespace Nexamas.UI.FloatRuntime

    Partial Friend NotInheritable Class MASMessageBoxFloatContent
#Region "IDisposable"

        Public Sub Dispose() Implements IDisposable.Dispose

            If _disposed Then Return
            _disposed = True

            Try
                _renderer.Dispose()
            Catch masCaughtException3 As Exception
                Nexamas.UI.Diagnostics.MASExceptionSilencer.SwallowBoundary(masCaughtException3, "MessageBox.Float.RendererDispose")
            End Try

            Try
                If _scroll IsNot Nothing Then
                    _scroll.Dispose()
                End If
            Catch masCaughtException4 As Exception
                Nexamas.UI.Diagnostics.MASExceptionSilencer.SwallowDisposeCleanup(masCaughtException4, "MessageBox.Float.ScrollDispose")
            Finally
                _scroll = Nothing
                _scrollCtx = Nothing
            End Try

            _session = Nothing
            _panelShellDrag.Cancel()
            _layout = Nothing

        End Sub

#End Region
    End Class

End Namespace
