From bc0f0ab384422ecff0ea5299f3db05f0bfca3411 Mon Sep 17 00:00:00 2001 From: Ricky8955555 <397050061@qq.com> Date: Sat, 27 Mar 2021 17:10:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=91=BD=E5=90=8D=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Forms/WindowMain.Designer.cs | 2 +- src/Forms/WindowMain.cs | 6 +++--- src/Models/UpdateCheckingConfig.cs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Forms/WindowMain.Designer.cs b/src/Forms/WindowMain.Designer.cs index 7166f2e..1ca47b8 100644 --- a/src/Forms/WindowMain.Designer.cs +++ b/src/Forms/WindowMain.Designer.cs @@ -307,7 +307,7 @@ private void InitializeComponent() this.checkBoxAutoCheckUpdate.Style = Sunny.UI.UIStyle.LightBlue; this.checkBoxAutoCheckUpdate.TabIndex = 4; this.checkBoxAutoCheckUpdate.Text = "启动时自动检查更新"; - this.checkBoxAutoCheckUpdate.ValueChanged += new Sunny.UI.UICheckBox.OnValueChanged(this.checkBoxAutoCheckUpdate_ValueChanged); + this.checkBoxAutoCheckUpdate.ValueChanged += new Sunny.UI.UICheckBox.OnValueChanged(this.CheckBoxAutoCheckUpdate_ValueChanged); // // buttonCleanLog // diff --git a/src/Forms/WindowMain.cs b/src/Forms/WindowMain.cs index d71f5fa..3edd62b 100644 --- a/src/Forms/WindowMain.cs +++ b/src/Forms/WindowMain.cs @@ -92,7 +92,7 @@ private void LoadComboBoxExtraFileSortingWay() private async void LoadAutoCheckUpdate() { - bool isAutoCheckUpdate = Configurations.UpdateCheckingConfig.Content.isAutoCheckUpdate; + bool isAutoCheckUpdate = Configurations.UpdateCheckingConfig.Content.IsAutoCheckUpdate; checkBoxAutoCheckUpdate.Checked = isAutoCheckUpdate; if (isAutoCheckUpdate) { @@ -247,9 +247,9 @@ protected override void WndProc(ref Message m) base.WndProc(ref m); } - private void checkBoxAutoCheckUpdate_ValueChanged(object sender, bool value) + private void CheckBoxAutoCheckUpdate_ValueChanged(object sender, bool value) { - Configurations.UpdateCheckingConfig.Content = Configurations.UpdateCheckingConfig.Content with { isAutoCheckUpdate = checkBoxAutoCheckUpdate.Checked }; + Configurations.UpdateCheckingConfig.Content = Configurations.UpdateCheckingConfig.Content with { IsAutoCheckUpdate = checkBoxAutoCheckUpdate.Checked }; Configurations.UpdateCheckingConfig.Save(); } } diff --git a/src/Models/UpdateCheckingConfig.cs b/src/Models/UpdateCheckingConfig.cs index f76bf34..2127d61 100644 --- a/src/Models/UpdateCheckingConfig.cs +++ b/src/Models/UpdateCheckingConfig.cs @@ -3,5 +3,5 @@ /// /// 表示自动检查更新设置 /// - public record UpdateCheckingConfig(bool isAutoCheckUpdate); + public record UpdateCheckingConfig(bool IsAutoCheckUpdate); }