public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destType) { if (destType == typeof(string) && value is VEntry) { VEntry entry = (VEntry)value; int damage = (int)((1.0f - entry.damage) * 100.0f); return(damage + " %"); } return(base.ConvertTo(context, culture, value, destType)); }
public void Remove(VEntry zone) { this.List.Remove(zone); }
public void Add(VEntry zone) { this.List.Add(zone); }