update commenti
This commit is contained in:
@@ -49,8 +49,6 @@ namespace IOB_MAN.Core
|
||||
{
|
||||
if (textMode)
|
||||
{
|
||||
//Func<Tuple<int, string>, string> tupleFormatter = t => $"{t.Item1} {t.Item2}{(t.Item1 == 1 ? string.Empty : "s")}";
|
||||
//Func<Tuple<int, string>, string> tupleFormatter = t => $"{t.Item1}{t.Item2}";
|
||||
Func<Tuple<int, string>, string> tupleFormatter = t => $"{t.Item1} {(t.Item1 == 1 ? t.Item2 : t.Item2.Replace("giorno", "giorni").Replace("ora", "ore"))}";
|
||||
var components = new List<Tuple<int, string>>
|
||||
{
|
||||
@@ -75,8 +73,6 @@ namespace IOB_MAN.Core
|
||||
}
|
||||
else
|
||||
{
|
||||
//Func<Tuple<int, string>, string> tupleFormatter = t => $"{t.Item1} {t.Item2}{(t.Item1 == 1 ? string.Empty : "s")}";
|
||||
//Func<Tuple<int, string>, string> tupleFormatter = t => $"{t.Item1}{t.Item2}";
|
||||
Func<Tuple<int, string>, string> tupleFormatter = t => $"{t.Item1:00}";
|
||||
var components = new List<Tuple<int, string>>
|
||||
{
|
||||
@@ -86,7 +82,6 @@ namespace IOB_MAN.Core
|
||||
Tuple.Create(timeSpan.Seconds, ""),
|
||||
};
|
||||
|
||||
//components.RemoveAll(i => i.Item1 == 0);
|
||||
|
||||
return $"{string.Join(":", components.Select(tupleFormatter))}";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user