Ejemplo n.º 1
0
        /// <summary>
        /// Read in the parameters to determine which sequence/collection we are editing.
        /// </summary>
        protected virtual void ReadParameters()
        {
            XmlNode node = ToolConfiguration.GetClerkNodeFromToolParamsNode(m_configurationParameters);

            // Set the clerk id if the parent control hasn't already set it.
            if (String.IsNullOrEmpty(m_vectorName))
            {
                m_vectorName = ToolConfiguration.GetIdOfTool(node);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initialize the control, creating the BrowseViewer among other things.
        /// </summary>
        /// <param name="cache"></param>
        /// <param name="stylesheet"></param>
        /// <param name="mediator"></param>
        public override void Initialize(FdoCache cache, IVwStylesheet stylesheet, XCore.Mediator mediator)
        {
            CheckDisposed();

            m_cache      = cache;
            m_stylesheet = stylesheet;
            m_mediator   = mediator;
            XmlNode xnWindow = (XmlNode)m_mediator.PropertyTable.GetValue("WindowConfiguration");

            m_configNode = xnWindow.SelectSingleNode("controls/parameters/guicontrol[@id=\"matchingEntries\"]/parameters");
            m_vectorName = ToolConfiguration.GetIdOfTool(m_configNode);
            Clerk.ActivateUI(false);
            this.SuspendLayout();
            CreateBrowseViewer();
            this.ResumeLayout(false);
        }
        /// <summary>
        /// Initialize the control, creating the BrowseViewer among other things.
        /// </summary>
        /// <param name="cache"></param>
        /// <param name="stylesheet"></param>
        /// <param name="mediator"></param>
        public void Initialize(FdoCache cache, IVwStylesheet stylesheet, XCore.Mediator mediator, ICmObject owner)
        {
            CheckDisposed();

            m_cache      = cache;
            m_stylesheet = stylesheet;
            m_mediator   = mediator;
            XmlNode xnWindow = (XmlNode)m_mediator.PropertyTable.GetValue("WindowConfiguration");

            m_configNode = xnWindow.SelectSingleNode("controls/parameters/guicontrol[@id=\"matchingReversalEntries\"]/parameters");
            m_vectorName = ToolConfiguration.GetIdOfTool(m_configNode);
            Clerk.ActivateUI(false);
            this.SuspendLayout();
            CreateBrowseViewer(owner.Hvo);
            (Clerk as MatchingItemsRecordClerk).UpdateList(new int[0] {
            });
            Clerk.OwningObject = owner;
            this.ResumeLayout(false);
        }