Store Fan mode in settings and add startup on boot

This commit is contained in:
Kamil Trzciński 2022-11-12 12:22:19 +01:00
parent 29903834a6
commit d56d123e61
7 changed files with 307 additions and 19 deletions

View file

@ -22,5 +22,17 @@ namespace FanControl.Properties {
return defaultInstance;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("Default")]
public string FanMode {
get {
return ((string)(this["FanMode"]));
}
set {
this["FanMode"] = value;
}
}
}
}

View file

@ -1,6 +1,9 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
</SettingsFile>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="FanControl.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="FanMode" Type="System.String" Scope="User">
<Value Profile="(Default)">Default</Value>
</Setting>
</Settings>
</SettingsFile>