SIL.FieldWorks.IText.TitleContentsPane.SetupVc C# (CSharp) Method

SetupVc() private method

private SetupVc ( ) : void
return void
		void SetupVc()
		{
			if (m_vc == null || m_hvoRoot == 0)
				return;
			Debug.Assert(m_hvoRoot != 0, "m_hvoRoot should be set before using SetupVc().");
			ICmObject co = Cache.ServiceLocator.GetInstance<ICmObjectRepository>().GetObject(m_hvoRoot);
			m_vc.IsScripture = ScriptureServices.ScriptureIsResponsibleFor(co as IStText);
			// don't allow editing scripture titles.
			m_vc.Editable = !m_vc.IsScripture;
			this.ReadOnlyView = !m_vc.Editable;
		}