/// <summary>
/// 格式化时间
/// </summary>
/// <param name="seconds"></param>
/// <param name="AlwaysShow"></param>
/// <returns></returns>
private string GetTimeFormat(int seconds, bool AlwaysShow)
{
string strReturn = "";
int intHours = seconds / (60 * 60);
int intMinutes = (seconds - intHours * (60 * 60)) / 60;
int intSeconds = seconds - intHours * (60 * 60) - intMinutes * 60;
if (intHours > 0)
{
strReturn += intHours + "小时" + " ";
}
if (intMinutes > 0)
{
strReturn += intMinutes + "分钟" + " ";
}
if (intSeconds > 0)
{
strReturn += intSeconds + "秒" + " ";
}
if (strReturn.Length == 0 && AlwaysShow)
{
strReturn = "0" + "分钟" + " ";
}
return strReturn;
}