diff --git a/Saviour Backup System/Saviour Backup System.csproj b/Saviour Backup System/Saviour Backup System.csproj index 0ab63ef..e399330 100644 --- a/Saviour Backup System/Saviour Backup System.csproj +++ b/Saviour Backup System/Saviour Backup System.csproj @@ -39,6 +39,7 @@ + @@ -64,6 +65,7 @@ splashScreen.cs + Form diff --git a/Saviour Backup System/tools.cs b/Saviour Backup System/tools.cs new file mode 100644 index 0000000..42a0509 --- /dev/null +++ b/Saviour Backup System/tools.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Saviour_Backup_System +{ + class tools + { + public static string Trim(this string value, int maxLength) + { + if (value.Length > maxLength) + { + return "..." + value.Substring(value.Length - (maxLength - 3)); + } + + return value; + } + } +}