public override void TestSetup()
        {
            base.TestSetup();
            m_listOfChecks = new SortedList <ScrCheckKey, IScriptureCheck>();
            m_bookFilter   = Cache.ServiceLocator.GetInstance <IFilteredScrBookRepository>().GetFilterInstance(m_filterInstance);

            m_editChecksControl = new EditorialChecksControl(
                Cache, null, m_bookFilter, "Dummy Caption", "Dummy Project", null, null);

            m_checksTree = ReflectionHelper.GetField(
                m_editChecksControl, "m_availableChecksTree") as TriStateTreeView;
        }
Exemplo n.º 2
0
        public override void Initialize()
        {
            m_inMemoryCache = null;
            base.Initialize();
            m_inMemoryCache.InitializeAnnotationDefs();
            m_listOfChecks = new SortedList <ScrCheckKey, IScriptureCheck>();
            m_bookFilter   = new FilteredScrBooks(Cache, m_filterInstance);

            m_editChecksControl = new EditorialChecksControl(
                m_scrInMemoryCache.Cache, m_bookFilter, "Dummy Caption", "Dummy Project", null);

            m_checksTree = ReflectionHelper.GetField(
                m_editChecksControl, "m_availableChecksTree") as TriStateTreeView;
        }
Exemplo n.º 3
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Initializes this instance.
        /// </summary>
        /// ------------------------------------------------------------------------------------
        protected override void Initialize()
        {
            base.Initialize();

            EditorialChecksControl edChkCtrl = m_treeContainer as EditorialChecksControl;

            if (edChkCtrl != null)
            {
                edChkCtrl.RunChecksClick  += HandleRunShowErrorsClicked;
                edChkCtrl.ShowChecksClick += HandleRunShowErrorsClicked;
                edChkCtrl.CheckErrorsList  = RenderingsControl;
            }

            RenderingsControl.ReferenceChanged += OnRefInGridChanged;
        }
Exemplo n.º 4
0
		public override void TestSetup()
		{
			base.TestSetup();
			m_listOfChecks = new SortedList<ScrCheckKey, IScriptureCheck>();
			m_bookFilter = Cache.ServiceLocator.GetInstance<IFilteredScrBookRepository>().GetFilterInstance(m_filterInstance);

			m_editChecksControl = new EditorialChecksControl(
				Cache, null, m_bookFilter, "Dummy Caption", "Dummy Project", null, null);

			m_checksTree = ReflectionHelper.GetField(
				m_editChecksControl, "m_availableChecksTree") as TriStateTreeView;
		}
Exemplo n.º 5
0
		public override void Initialize()
		{
			m_inMemoryCache = null;
			base.Initialize();
			m_inMemoryCache.InitializeAnnotationDefs();
			m_listOfChecks = new SortedList<ScrCheckKey, IScriptureCheck>();
			m_bookFilter = new FilteredScrBooks(Cache, m_filterInstance);

			m_editChecksControl = new EditorialChecksControl(
				m_scrInMemoryCache.Cache, m_bookFilter, "Dummy Caption", "Dummy Project", null);

			m_checksTree = ReflectionHelper.GetField(
				m_editChecksControl, "m_availableChecksTree") as TriStateTreeView;
		}