private static void HookErrorPanelEvent(ErrorListUserControl panel) { if (panel != null) { _errPublisher.subscribeMeToErrorEvents(panel); panel.ErrorExitProgramEvent += ErrorExitProgramEvent; panel.ErrorStopEvent += ErrorStopEvent; } }
public static void AddErrorDispPanel(ErrorListUserControl panel) { _errorShowPanel = panel; HookErrorPanelEvent(panel); }