private string groupCount(PollutantReleases.ReleasesTreeListRow row) { int total = ListOfValues.CountLeafPollutants(row.Code); int number = 0; return(String.Format("({0}/{1})", number, total)); }
protected string GetGroupCount(object obj) { IndustrialActivity.IAReleasesTreeListRow row = (IndustrialActivity.IAReleasesTreeListRow)obj; if (row.HasChildren) { int total = ListOfValues.CountLeafPollutants(row.Code); int number = row.CountChildPollutants; return(String.Format("({0}/{1})", number, total)); } else { return(string.Empty); } }