Exemplo n.º 1
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Creates the object that can provide multi-lingual names and abbreviations for
 /// Scripture books.
 /// </summary>
 /// <param name="scrProj">The Scripture project.</param>
 /// <param name="versification">ignored</param>
 /// ------------------------------------------------------------------------------------
 protected override void CreateMultilingScrBooks(IScrProjMetaDataProvider scrProj, ScrVers versification)
 {
     m_mulScrBooks = new DBMultilingScrBooks((IScripture)scrProj);
 }
Exemplo n.º 2
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Initializes a new instance of the TeNotesVc class
		/// </summary>
		/// <param name="cache"></param>
		/// ------------------------------------------------------------------------------------
		public TeNotesVc(FdoCache cache) : base(TeStVc.LayoutViewTarget.targetDraft, -1)
		{
			m_wsDefault = cache.DefaultAnalWs;
			m_cache = cache;
			m_scr = cache.LangProject.TranslatedScriptureOA;
			m_scrBooks = new DBMultilingScrBooks((Scripture)m_scr);

			Image img = ResourceHelper.MinusBox;
			m_picMinus = (stdole.IPicture)OLECvt.ToOLE_IPictureDisp(img);
			//m_pixelHeights[m_picMinus] = img.Height;
			m_picPlus = (stdole.IPicture)OLECvt.ToOLE_IPictureDisp(ResourceHelper.PlusBox);
			m_picChooser = GetChooserImage();

			//using (Form frm = new Form())
			//using (Graphics g = frm.CreateGraphics())
			//    m_dpiY = (int)g.DpiY;

			m_quoteLabel = MakeLabelFromStringID("kstidQuoteLabel");
			m_detailsLabel = MakeLabelFromStringID("kstidDetailsLabel");
			m_discussionLabel = MakeLabelFromStringID("kstidDiscussionLabel");
			m_messageLabel = MakeLabelFromStringID("kstidMessageLabel");
			m_suggestionLabel = MakeLabelFromStringID("kstidSuggestionLabel");
			m_resolutionLabel = MakeLabelFromStringID("kstidResolutionLabel");
			m_authorLabel = MakeLabelFromStringID("kstidAuthorLabel");
			m_createdLabel = MakeLabelFromStringID("kstidCreatedLabel");
			m_modifiedLabel = MakeLabelFromStringID("kstidModifiedLabel");
			m_resolvedLabel = MakeLabelFromStringID("kstidResolvedLabel");
			m_responseLabel = MakeLabelFromStringID("kstidResponseLabel");
			ITsStrFactory strFactory = TsStrFactoryClass.Create();
			m_tssEmpty = strFactory.MakeString(string.Empty, m_scr.Cache.DefaultUserWs);
		}