void CurrentElement_CurrentElementChanged(object sender, CurrentElementChangedEventArgs e)
        {
            // Set the window title to the name of the element.
            string windowTitle = "Attributes of element " + CurrentElement.Element.GetAsString(DbAttributeInstance.FLNM);

            attributeListWindow.Title = windowTitle;
            // Clear attribute list
            attributeListControl.Clear();
            // Populate the attribute list with attributes of the current element
            foreach (DbAttribute attribute in CurrentElement.Element.GetAttributes())
            {
                attributeListControl.AddAttribute(attribute.Name, CurrentElement.Element.GetAsString(attribute));
            }
        }
 static void CurrentElement_CurrentElementChanged(object sender, CurrentElementChangedEventArgs e)
 {
     Console.WriteLine(e.Element);
 }
Exemple #3
0
 static void CurrentElement_CurrentElementChanged(object sender, CurrentElementChangedEventArgs e)
 {
     Console.WriteLine(e.Element);
 }
 void CurrentElement_CurrentElementChanged(object sender, CurrentElementChangedEventArgs e)
 {
     // Set the window title to the name of the element.
     string windowTitle = "Attributes of element " + CurrentElement.Element.GetAsString(DbAttributeInstance.FLNM);
     attributeListWindow.Title = windowTitle;
     // Clear attribute list
     attributeListControl.Clear();
     // Populate the attribute list with attributes of the current element
     foreach (DbAttribute attribute in CurrentElement.Element.GetAttributes())
     {
         attributeListControl.AddAttribute(attribute.Name, CurrentElement.Element.GetAsString(attribute));
     }
 }