Пример #1
0
		public override void Run()
		{
			if (string.IsNullOrEmpty(HelpLibraryManager.Manager)) {
				using (HelpLibraryManagerNotFoundForm form = new HelpLibraryManagerNotFoundForm()) {
					form.ShowDialog(WorkbenchSingleton.MainWin32Window);
				}
				return;
			}
			HelpLibraryManager.Start();
		}
Пример #2
0
		public override void Run()
		{
			if (!Help3Environment.IsHelp3ProtocolRegistered) {
				using (HelpLibraryManagerNotFoundForm form = new HelpLibraryManagerNotFoundForm()) {
					form.ShowDialog(WorkbenchSingleton.MainWin32Window);
				}
				return;
			}
			PadDescriptor search = WorkbenchSingleton.Workbench.GetPad(typeof(Help3SearchPad));
			if (search != null) search.BringPadToFront();
		}
Пример #3
0
		public override void Run()
		{
			if (!Help3Environment.IsHelp3ProtocolRegistered) {
				using (HelpLibraryManagerNotFoundForm form = new HelpLibraryManagerNotFoundForm()) {
					form.ShowDialog(WorkbenchSingleton.MainWin32Window);
				}
				return;
			}
			if (Help3Service.Config.ExternalHelp) DisplayHelp.Catalog();
			else {
				PadDescriptor toc = WorkbenchSingleton.Workbench.GetPad(typeof(Help3TocPad));
				if (toc != null) toc.BringPadToFront();
			}
		}