Skip to content

Commit

Permalink
多条更新内容:
Browse files Browse the repository at this point in the history
修复了更改系统"缩放与布局"设置后会导致软件用户界面会错乱的问题
准备v2.8.7-pre1的发布
  • Loading branch information
Hgnim committed Jan 22, 2025
1 parent 2a3360d commit 8190031
Show file tree
Hide file tree
Showing 20 changed files with 3,172 additions and 1,577 deletions.
41 changes: 9 additions & 32 deletions TimedPower/AboutForm.Designer.cs

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

9 changes: 5 additions & 4 deletions TimedPower/AboutForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,20 @@
using System.Resources;
namespace TimedPower {
public partial class AboutForm : Form {
public AboutForm() {
public AboutForm() {
UpdateLanguageResource();
InitializeComponent();

Main.ProgramLanguage.UpdateLanguage += UpdateLanguage;
UpdateLanguage();
}
static ResourceManager langRes = null!;
static string GetLangStr(string key, string head = "aboutForm") => langRes.GetString($"{head}.{key}", CultureInfo.CurrentUICulture)!;
void UpdateLanguage() {
LanguageData.UpdateLanguageResource(out langRes, FilePath.MainLanguageFile);
UpdateLanguageResource();
LanguageData.UpdateFormLanguage(this);
}

static void UpdateLanguageResource() => LanguageData.UpdateLanguageResource(out langRes, FilePath.MainLanguageFile);

private void AboutForm_Load(object sender, EventArgs e) {
info_name.Text = PInfo.Alias;
info_version.Text = $"V{PInfo.version}";
Expand Down
Loading

0 comments on commit 8190031

Please sign in to comment.