private ListViewItem AddItem(Profiles.BlacklstElement element) { ListViewItem lvi = this.ListView.Items.Add(element.GetAttribute("Host")); lvi.Tag = (object)element; lvi.SubItems.Add(element.GetAttribute("Date")); lvi.SubItems.Add(element.GetAttribute("Desc")); return lvi; }
protected void AddElement(Profiles.OrderRelationElement element, PropertyBag bag) { const string category = "Provision¶©¹º"; string desc = String.Format("ID := {{{0}}}", element.GetAttribute("Code")); PropertySpec item = new PropertySpec(element.GetAttribute("Name"), 0, category, desc); item.Key = element.GetAttribute("Code"); #if false item.Attributes = new Attribute[] { ReadOnlyAttribute.Yes }; #endif bag.Add(item); }