Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
krisdb2009 committed Jul 22, 2023
1 parent b47d2f3 commit d4fd73b
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 44 deletions.
2 changes: 1 addition & 1 deletion SuperGrate/Classes/WMI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ public static void HandleWMIException(Exception e, string Host)
throw new Exception(Language.Get("Class/WMI/Log/Failed/QueryWMI", Host));
}
}
}
}
10 changes: 0 additions & 10 deletions SuperGrate/Controls/About.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions SuperGrate/Controls/About.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Diagnostics;
using SuperGrate.Classes;
using System.Diagnostics;
using System.Drawing;
using System.Reflection;
using System.Windows.Forms;
Expand All @@ -11,14 +12,17 @@ public About()
{
InitializeComponent();
Icon = Properties.Resources.info_ico;
Text = string.Format("About {0}", AssemblyTitle);
Text = Language.Get("Control/About/About", AssemblyTitle);
labelProductName.Text = AssemblyProduct;
labelVersion.Text = string.Format("Version {0}", AssemblyVersion);
labelVersion.Text = Language.Get("Control/About/Version", AssemblyVersion);
labelCopyright.Text = AssemblyCopyright;
labelCompanyName.Text = AssemblyCompany;
textBoxDescription.Text = AssemblyDescription;
pbLogo.Image = Properties.Resources.supergrate_ico.ToBitmapAlpha(48, 48);
okButton.SetSystemIcon(Properties.Resources.check_ico);
llLicense.Text = Language.Get("Control/About/License");
llGitHub.Text = Language.Get("Control/About/GitHub");
okButton.Text = Language.Get("OK");
}

#region Assembly Attribute Accessors
Expand Down
3 changes: 1 addition & 2 deletions SuperGrate/Controls/Components/SGProgressBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,13 @@ protected override void WndProc(ref Message m)
{
if (Style == ProgressBarStyle.Marquee)
{
DrawText("Working...");
//DrawText("Working...");
return;
}
if (Value == 100 || Value == 0) return;
DrawText((((float)Value / (float)Maximum) * 100).ToString() + "%");
}
}

private void InitializeComponent()
{
this.SuspendLayout();
Expand Down
37 changes: 9 additions & 28 deletions SuperGrate/Localization/en-US.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<Start>Start</Start>
<Stop>Stop</Stop>
<Done>Done.</Done>
<OK>OK</OK>
<Canceled>Canceled.</Canceled>
<DeleteUser>Delete user</DeleteUser>
<DeleteUsers>Delete users</DeleteUsers>
Expand All @@ -22,37 +23,9 @@
<Store>store</Store>
<SourceComputer>Source computer</SourceComputer>
<DestinationComputer>Destination computer</DestinationComputer>











<FailedToGatherUserProperties>Failed to gather user properties.</FailedToGatherUserProperties>
<FailedToSearchActiveDirectory>Failed to search active directory.</FailedToSearchActiveDirectory>
















<FoundComputers>Found {0} computers.</FoundComputers>

<GatheringUserProperties>Gathering user properties...</GatheringUserProperties>
<SearchingActiveDirectoryFor>Searching active directory for {0}...</SearchingActiveDirectoryFor>
<Searching>Searching...</Searching>
Expand Down Expand Up @@ -230,4 +203,12 @@
</Log>
</WMI>
</Class>
<Control>
<About>
<About>About {0}</About>
<Version>Version {0}</Version>
<License>License</License>
<GitHub>GitHub</GitHub>
</About>
</Control>
</SGLanguage>

0 comments on commit d4fd73b

Please sign in to comment.