private string FormatToolTip(int value)
{
TimeSpan timeSpan = new TimeSpan(0, value, 0);
if (value < 60)
{
return timeSpan.ToString("%m") + " " + Properties_Resources.Minutes;
}
else if (value == 60)
{
return timeSpan.ToString("%h") + " " + Properties_Resources.Hour;
}
else if (value == 1440)
{
return timeSpan.ToString("%d") + " " + Properties_Resources.Day;
}
else
{
return timeSpan.ToString("%h") + " " + Properties_Resources.Hours;
}
}