protected string GetName(object obj) { PollutantTransfers.TransfersTreeListRow row = (PollutantTransfers.TransfersTreeListRow)obj; if (row.HasChildren) //this is a pollutant group { return(LOVResources.PollutantGroupName(row.Code) + " " + GetGroupCount(row)); } else { return(LOVResources.PollutantName(row.Code)); } }
protected bool ShowTimeSeries(object obj) { //onlæy show time series icons for pollutants - not for groups PollutantTransfers.TransfersTreeListRow row = (PollutantTransfers.TransfersTreeListRow)obj; return(row.Level == 1); }
protected string GetCommand(object obj) { PollutantTransfers.TransfersTreeListRow row = (PollutantTransfers.TransfersTreeListRow)obj; return(String.Format("level:{0} code:{1}", row.Level, row.Code)); }
protected string GetToolTip(object obj) { PollutantTransfers.TransfersTreeListRow row = (PollutantTransfers.TransfersTreeListRow)obj; return(row.HasChildren ? string.Empty : row.ToolTip()); }