Ejemplo n.º 1
0
		/// <summary/>
		public FakeBrowseViewer()
		{
			m_scrollBar = new VScrollBar();
			m_configureButton = new Button();
			m_lvHeader = new DhListView(this);
			m_scrollContainer = new BrowseViewScroller(this);

			// When running FieldWorks, the constructor eventually creates an XmlBrowseView and calls AddControl() with it,
			// and adds m_scrollContainer to Controls. Model this so the .Dispose methods can behave the same way when
			// testing as when running FieldWorks.
			Controls.Add(m_scrollContainer);
			m_xbv = new FakeXmlBrowseViewBase(this);
			AddControl(m_xbv);
		}
Ejemplo n.º 2
0
        /// <summary/>
        public FakeBrowseViewer()
        {
            m_scrollBar       = new VScrollBar();
            m_configureButton = new Button();
            m_lvHeader        = new DhListView(this);
            m_scrollContainer = new BrowseViewScroller(this);

            // When running FieldWorks, the constructor eventually creates an XmlBrowseView and calls AddControl() with it,
            // and adds m_scrollContainer to Controls. Model this so the .Dispose methods can behave the same way when
            // testing as when running FieldWorks.
            Controls.Add(m_scrollContainer);
            m_xbv = new FakeXmlBrowseViewBase(this);
            AddControl(m_xbv);
        }