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
[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