private static void OnCloseIPanel(Guid panelTypeGuid, uint documentSerailNumber, PanelInstance instance, IPanel panel, bool onCloseDocument) { Panels.OnClosePanel(panelTypeGuid, documentSerailNumber); panel?.PanelClosing(documentSerailNumber, onCloseDocument); }