Update README.md

This commit is contained in:
Stone_Red
2021-05-03 18:22:19 +02:00
committed by GitHub
parent c16b034b3f
commit 4a567db427
+2 -2
View File
@@ -62,7 +62,7 @@ private static void Downloader_ProgressChanged(long? totalFileSize, long totalBy
} }
``` ```
### Handeling the update ### Handeling the update
``` ```cs
private static void Updater_UpdateAvailible(string version, string additionalInformation) private static void Updater_UpdateAvailible(string version, string additionalInformation)
{ {
Console.WriteLine("New Update avalible: " + version); Console.WriteLine("New Update avalible: " + version);
@@ -75,7 +75,7 @@ private static void Updater_UpdateAvailible(string version, string additionalInf
} }
``` ```
### Download process reporting ### Download process reporting
``` ```cs
private static void Updater_ProgressChanged(long? totalFileSize, long totalBytesDownloaded, double? progressPercentage) private static void Updater_ProgressChanged(long? totalFileSize, long totalBytesDownloaded, double? progressPercentage)
{ {
Console.WriteLine($"{totalBytesDownloaded}/{totalFileSize} {progressPercentage}%"); Console.WriteLine($"{totalBytesDownloaded}/{totalFileSize} {progressPercentage}%");