static void Finalization() { if (WikiHelpViewer.FHelpManager != null) { WikiHelpViewer.InternalShutDown(); } if (WikiHelpTester != null) { WikiHelpTester = null; } if (WikiHelpSelector != null) { WikiHelpSelector = null; } }
static Unit() { TApplication.AddFinalization(Finalization); try { WikiHelpViewer = new TWikiHelpViewer(); WikiHelpSelector = new TWikiHelpSelector(); WikiHelpTester = new TWikiHelpTester(); HelpIntfs.RegisterViewer(WikiHelpViewer, out WikiHelpViewer.FHelpManager); //{Changing to HTML} WinHelpViewer.WinHelpTester = WikiHelpTester; TApplication.Instance.HelpSystem.AssignHelpSelector(WikiHelpSelector); } catch { } TestHelp(); }