private double CalculatePercentUsage(UsageDetail u) { return(u.total_usage > .0 ? ((double)(u.string_usage + u.file_usage) / u.total_usage * 100) : 0); }
public AESUsage(UsageDetail u) { title = "ZZ"; percent = CalculatePercentUsage(u); }