Client has been renamed to launcher, and thus namespaces and artifact names had to change. The server project has also had some artifacts renamed in order to create a more clear separation of builds. This will break auto-updates before v0.9.0.
19 lines
477 B
C#
19 lines
477 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace LANCommander.Launcher.Extensions
|
|
{
|
|
public static class TimeSpanExtensions
|
|
{
|
|
public static string ToShortTime(this TimeSpan timeSpan)
|
|
{
|
|
if (timeSpan.TotalHours >= 1)
|
|
return timeSpan.ToString("hh\\:mm\\:ss");
|
|
else
|
|
return timeSpan.ToString("mm\\:ss");
|
|
}
|
|
}
|
|
}
|