Ejemplo n.º 1
0
 static void Finalization()
 {
     if (WikiHelpViewer.FHelpManager != null)
     {
         WikiHelpViewer.InternalShutDown();
     }
     if (WikiHelpTester != null)
     {
         WikiHelpTester = null;
     }
     if (WikiHelpSelector != null)
     {
         WikiHelpSelector = null;
     }
 }
Ejemplo n.º 2
0
 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();
 }