-
Notifications
You must be signed in to change notification settings - Fork 2
/
Output.cs
41 lines (39 loc) · 2.4 KB
/
Output.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
namespace InstallDebloater
{
internal class Output
{
internal static void successmessage(double start, int totalfiles, int totalfolders, double totalfilesize, double final)
{
Console.WriteLine();
Console.WriteLine("*********************************************************");
Console.WriteLine("*********************************************************");
Console.WriteLine("Deletion Process completed successfully.");
Console.WriteLine("Starting size: " + Math.Round(((start / 1024) / 1024), 3) + "MB. Final size: " + Math.Round(((final / 1024) / 1024), 3) + "MB.");
Console.WriteLine("Deleted a total of " + totalfiles + " files and " + totalfolders + " folders.");
Console.WriteLine("The total deleted file size amounts to: " + Math.Round(((totalfilesize / 1024) / 1024), 3) + "MB.");
Console.WriteLine("The total size has been reduced by: " + Math.Round((100 - ((final / start) * 100)), 2) + "%");
Console.WriteLine();
Console.WriteLine();
Console.WriteLine("Application written by: Mario Schweidler (neatodev)");
Console.WriteLine("Github: https://github.com/neatodev/InstallDebloater");
Console.WriteLine("*********************************************************");
Console.WriteLine("*********************************************************");
Console.WriteLine();
}
internal static void failmessage(int totalfiles, int totalfolders)
{
Console.WriteLine();
Console.WriteLine("*********************************************************");
Console.WriteLine("*********************************************************");
Console.WriteLine("Deleted " + totalfiles + " files and " + totalfolders + " folders.");
Console.WriteLine("Nothing was deleted. The total size remains unchanged.");
Console.WriteLine();
Console.WriteLine();
Console.WriteLine("Application written by: Mario Schweidler (neatodev)");
Console.WriteLine("Github: https://github.com/neatodev/InstallDebloater");
Console.WriteLine("*********************************************************");
Console.WriteLine("*********************************************************");
Console.WriteLine();
}
}
}