Beispiel #1
0
        internal void CloseDetailsView()
        {
            OnDeselected();

            if (m_DetailsViewController != null)
            {
                m_DetailsViewController.Dispose();
                m_DetailsViewController = null;
            }
        }
Beispiel #2
0
        internal VisualElement CreateDetailsView()
        {
            OnSelected();

            if (m_DetailsViewController != null)
            {
                throw new InvalidOperationException($"A new details view was requested for the module '{DisplayName}' but the previous one has not been destroyed.");
            }

            m_DetailsViewController = CreateDetailsViewController();
            if (m_DetailsViewController == null)
            {
                throw new InvalidOperationException($"A new details view controller was requested for the module '{DisplayName}' but none was provided.");
            }

            return(m_DetailsViewController.View);
        }