private void AddCapability(object obj)
{
String reference = EMPTYCHAR;
String name = EMPTYCHAR;
String value = EMPTYCHAR;
if (obj is Capability)
{
reference = "No";
name = ((Capability) obj).name;
value = ((Capability) obj).Description;
}
else if (obj is DocumentReference)
{
reference = "Yes";
name = ((DocumentReference) obj).ID;
value = ((DocumentReference) obj).uuid;
}
var item = new ListViewItem(reference);
item.SubItems.Add(name);
item.SubItems.Add(value);
item.Tag = obj;
int idx = Items.Add(item).Index;
item.BackColor = idx % 2 == 0 ? ATMLContext.COLOR_LIST_EVEN : ATMLContext.COLOR_LIST_ODD;
}