private string groupCount(PollutantReleases.ReleasesTreeListRow row)
    {
        int total  = ListOfValues.CountLeafPollutants(row.Code);
        int number = 0;

        return(String.Format("({0}/{1})", number, total));
    }
    protected string GetName(object obj)
    {
        PollutantReleases.ReleasesTreeListRow row = (PollutantReleases.ReleasesTreeListRow)obj;

        if (row.HasChildren) //this is a pollutant group
        {
            return(LOVResources.PollutantGroupName(row.Code) + " " + GetGroupCount(row));
        }
        else
        {
            return(LOVResources.PollutantName(row.Code));
        }
    }
 protected string GetToolTipWater(object obj)
 {
     PollutantReleases.ReleasesTreeListRow row = (PollutantReleases.ReleasesTreeListRow)obj;
     return(row.HasChildren ? string.Empty : row.ToolTipWater());
 }
 protected string GetAccidentalWater(object obj)
 {
     PollutantReleases.ReleasesTreeListRow row = (PollutantReleases.ReleasesTreeListRow)obj;
     return(row.HasChildren ? string.Empty : row.FormatAccidentalWater());
 }
 protected string GetTotalSoil(object obj)
 {
     PollutantReleases.ReleasesTreeListRow row = (PollutantReleases.ReleasesTreeListRow)obj;
     return(row.HasChildren ? string.Empty : row.FormatTotalSoil());
 }