Skip to content

Commit c7edd4e

Browse files
committed
add AntdUI Winform Upgrade UI
1 parent 9237ba9 commit c7edd4e

File tree

12 files changed

+787
-0
lines changed

12 files changed

+787
-0
lines changed

UI/AntdUI/Upgrade/Upgrade.sln

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.12.35527.113
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Upgrade", "Upgrade\Upgrade.csproj", "{65C2D7BC-ABBD-4814-A405-05157E959661}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{65C2D7BC-ABBD-4814-A405-05157E959661}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{65C2D7BC-ABBD-4814-A405-05157E959661}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{65C2D7BC-ABBD-4814-A405-05157E959661}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{65C2D7BC-ABBD-4814-A405-05157E959661}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
EndGlobal
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
namespace Upgrade
2+
{
3+
public class Localizer : AntdUI.ILocalization
4+
{
5+
public string? GetLocalizedString(string key)
6+
{
7+
switch (key)
8+
{
9+
case "ID":
10+
return "en-US";
11+
12+
case "Cancel":
13+
return "Cancel";
14+
case "OK":
15+
return "OK";
16+
case "Now":
17+
return "Now";
18+
case "ToDay":
19+
return "Today";
20+
case "NoData":
21+
return "No data";
22+
23+
case "title":
24+
return "General Update Client";
25+
case "note":
26+
return "Fixed some known issues";
27+
case "btn":
28+
return "Update now";
29+
case "loading":
30+
return "Checking for updates";
31+
case "newVersion":
32+
return "New Version";
33+
case "download":
34+
return "Download updates";
35+
case "verify":
36+
return "Verify file";
37+
case "updating":
38+
return "Updating";
39+
case "incompleteFile":
40+
return "Incomplete file";
41+
case "downloadFailed":
42+
return "Download update failed";
43+
case "downloadCompleted":
44+
return "Update completed";
45+
46+
default:
47+
System.Diagnostics.Debug.WriteLine(key);
48+
return null;
49+
}
50+
}
51+
}
52+
}

UI/AntdUI/Upgrade/Upgrade/Main.Designer.cs

Lines changed: 190 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)