Esempio n. 1
0
		protected override void Dispose(bool disposing)
		{
			if (disposing)
			{
				m_interlinearTextsVh = null;
			}
			base.Dispose(disposing);
		}
		/// <summary>
		/// We need to re-initialize our PropertyTable for each test.
		/// </summary>
		protected override void InitializeWindowAndToolControls()
		{
			base.InitializeWindowAndToolControls();

			m_concordanceTextsVh = BaseVirtualHandler.GetInstalledHandler(m_fdoCache,
				"LangProject", "InterlinearTexts") as InterlinearTextsVirtualHandler;
			ClearScriptureFilter();
			SwitchToConcordanceTool();
		}
Esempio n. 3
0
		bool TryGetInterlinearTextsVirtualHandler(out InterlinearTextsVirtualHandler itvh)
		{
			itvh = null;
			List<int> flids;
			IVwVirtualHandler vh;
			// first try our record list
			if (Cache.TryGetVirtualHandler(m_list.Flid, out vh) && vh is InterlinearTextsVirtualHandler)
			{
				itvh = vh as InterlinearTextsVirtualHandler;
			}
			else if (Cache.TryGetDependencies(m_list.Flid, out flids))
			{
				// try our dependencies.
				Set<int> uniqueflids = new Set<int>(flids);
				foreach (int flid in uniqueflids)
				{
					if (Cache.TryGetVirtualHandler(flid, out vh) && vh is InterlinearTextsVirtualHandler)
					{
						itvh = vh as InterlinearTextsVirtualHandler;
					}
				}
			}
			return itvh != null;
		}
		public override void Exit()
		{
			CheckDisposed();
			m_concordanceControl.Dispose();
			m_concordanceControl = null;
			m_concordanceTextsVh = null;
			base.Exit();
		}