/// <summary>
        /// Initializes the control with a set of identified results.
        /// </summary>
        public void Initialize(OpcDa::BrowseElement element)
        {
            PropertiesLV.Items.Clear();

            // check if there is nothing to do.
            if (element == null || element.Properties == null)
            {
                return;
            }

            m_element = element;

            foreach (OpcDa::ItemProperty property in element.Properties)
            {
                AddProperty(property);
            }

            // adjust the list view columns to fit the data.
            AdjustColumns();
        }
 /// <summary>
 /// While implemented adds the browse element to parent collection.
 /// </summary>
 /// <param name="element">The element.</param>
 protected abstract void AddBrowseElement(OpcDa::BrowseElement element);
Example #3
0
 protected override void AddBrowseElement(OpcDa::BrowseElement element)
 {
     new BrowseElementNode(element, m_Parent);
 }
 private void OnElementSelected(OpcDa::BrowseElement element)
 {
     m_PropertiesCTRL.Initialize(element);
 }