Add a setting to allow networks to auto-DHCP on start.
This commit is contained in:
parent
6fd86bd916
commit
e086782532
@ -37,6 +37,9 @@
|
||||
<setting name="ProcessingLevel" serializeAs="String">
|
||||
<value>none</value>
|
||||
</setting>
|
||||
<setting name="AutoDHCP" serializeAs="String">
|
||||
<value>False</value>
|
||||
</setting>
|
||||
</EduNetworkBuilder.Properties.Settings>
|
||||
</userSettings>
|
||||
</configuration>
|
@ -32,6 +32,7 @@ namespace EduNetworkBuilder
|
||||
public int MainWindowHeight = -1;
|
||||
public string ProcessingLevel = "none";
|
||||
public UInt32 NextID = 100;
|
||||
public bool AutoDHCPAllMachinesAtNetworkLoad = false; //Mainly for teachers
|
||||
|
||||
public NBSettings()
|
||||
{
|
||||
@ -63,6 +64,7 @@ namespace EduNetworkBuilder
|
||||
ToClass.MainWindowHeight = FromClass.MainWindowHeight;
|
||||
ToClass.MainWindowWidth = FromClass.MainWindowWidth;
|
||||
ToClass.BelongsToUser = FromClass.BelongsToUser;
|
||||
ToClass.AutoDHCPAllMachinesAtNetworkLoad = FromClass.AutoDHCPAllMachinesAtNetworkLoad;
|
||||
|
||||
foreach (string one in FromClass.ScoreList)
|
||||
{
|
||||
@ -114,6 +116,7 @@ namespace EduNetworkBuilder
|
||||
MainWindowY = Properties.Settings.Default.MainWindowY;
|
||||
MainWindowHeight = Properties.Settings.Default.MainWindowHeight;
|
||||
MainWindowWidth = Properties.Settings.Default.MainWindowWidth;
|
||||
AutoDHCPAllMachinesAtNetworkLoad = Properties.Settings.Default.AutoDHCP;
|
||||
|
||||
foreach(string one in Properties.Settings.Default.ScoreList)
|
||||
{
|
||||
@ -243,6 +246,7 @@ namespace EduNetworkBuilder
|
||||
Properties.Settings.Default.MainWindowY = MainWindowY;
|
||||
Properties.Settings.Default.MainWindowHeight = MainWindowHeight;
|
||||
Properties.Settings.Default.MainWindowWidth = MainWindowWidth;
|
||||
Properties.Settings.Default.AutoDHCP = AutoDHCPAllMachinesAtNetworkLoad;
|
||||
|
||||
Properties.Settings.Default.ScoreList.Clear();
|
||||
foreach(string One in ScoreList)
|
||||
|
12
EduNetworkBuilder/Properties/Settings.Designer.cs
generated
12
EduNetworkBuilder/Properties/Settings.Designer.cs
generated
@ -152,5 +152,17 @@ namespace EduNetworkBuilder.Properties {
|
||||
this["RecentFiles"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("False")]
|
||||
public bool AutoDHCP {
|
||||
get {
|
||||
return ((bool)(this["AutoDHCP"]));
|
||||
}
|
||||
set {
|
||||
this["AutoDHCP"] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -35,5 +35,8 @@
|
||||
<Setting Name="RecentFiles" Type="System.Collections.Specialized.StringCollection" Scope="User">
|
||||
<Value Profile="(Default)" />
|
||||
</Setting>
|
||||
<Setting Name="AutoDHCP" Type="System.Boolean" Scope="User">
|
||||
<Value Profile="(Default)">False</Value>
|
||||
</Setting>
|
||||
</Settings>
|
||||
</SettingsFile>
|
Loading…
Reference in New Issue
Block a user