add event and news task

This commit is contained in:
stubbfel
2013-09-17 13:48:37 +02:00
parent b0a8b8f6af
commit 98d8a43961
21 changed files with 1172 additions and 162 deletions

View File

@@ -54,6 +54,16 @@ namespace CampusAppWP8ScheduledTaskAgent.Utility
{
return str.TrimEnd('\n');
}
public static string ToShortString(string longStr, int maxLenght)
{
string shortStr = longStr;
if (shortStr.Length > maxLenght)
{
shortStr = shortStr.Substring(0, maxLenght);
}
return shortStr;
}
#endregion
}
}