protected virtual void RaiseAttributeSelected(AttributeSelectedEventArgs e)
        {
            EventHandler<AttributeSelectedEventArgs> handler = OnAttributeSelected;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Example #2
0
 private void attributeSelector1_OnAttributeSelected(object sender, AttributeSelectedEventArgs e)
 {
     foreach (ListViewItem item in listView1.Items)
     {
         var fi = (FormInfo)item.Tag;
         if (item.SubItems.Count == 1)
         {
             item.SubItems.Add(string.Empty);
         }
         item.SubItems[item.SubItems.Count - 1].Text = fi.HasAttribute(e.Metadata.LogicalName).ToString();
     }
 }