Skip to content

Commit

Permalink
Rename 'Settings' to 'PolicySettings'.
Browse files Browse the repository at this point in the history
  • Loading branch information
rinrab committed Dec 31, 2023
1 parent 666dc16 commit 00b5e8e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions AOVpnManager/Settings.cs → AOVpnManager/PolicySettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

namespace AOVpnManager
{
public class Settings
public class PolicySettings
{
public string Profile { get; set; }
public string ConnectionName { get; set; }

public Settings(string profile, string connectionName)
public PolicySettings(string profile, string connectionName)
{
Profile = profile;
ConnectionName = connectionName;
}

public static Settings Read()
public static PolicySettings Read()
{
using (RegistryKey key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Policies\AOVpnManager"))
{
Expand All @@ -22,7 +22,7 @@ public static Settings Read()
string[] profile = (string[])key.GetValue("Profile");
string connectionName = (string)key.GetValue("ConnectionName");

return new Settings((profile == null) ? null : string.Join("\n", profile), connectionName);
return new PolicySettings((profile == null) ? null : string.Join("\n", profile), connectionName);
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion AOVpnManager/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ static int Main(string[] args)

try
{
var settings = Settings.Read();
var settings = PolicySettings.Read();

if (string.IsNullOrEmpty(settings.Profile) || string.IsNullOrEmpty(settings.ConnectionName))
{
Expand Down

0 comments on commit 00b5e8e

Please sign in to comment.