Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8561

Panel does not close

$
0
0

Hi all,

I simply want to close panel when document is closing. But its not closing, I really don’t know why. Anyone has any idea?

Simple code example :arrow_down:

[Guid("ff4bd166-b1f7-419b-9af4-53daede5e1fb")]
public class MainPanel : Panel
{
    public static System.Guid PanelId => typeof(MainPanel).GUID;

    public MainPanel(uint documentRuntimeSerialNumber)
    {
        RhinoDoc.CloseDocument += OnCloseDocument;
    }

    private void OnCloseDocument(object sender, DocumentEventArgs e)
    {
        Panels.ClosePanel(PanelId );
    }
}

Thanks in advance.
-Oğuzhan

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 8561

Trending Articles