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">
|
<setting name="ProcessingLevel" serializeAs="String">
|
||||||
<value>none</value>
|
<value>none</value>
|
||||||
</setting>
|
</setting>
|
||||||
|
<setting name="AutoDHCP" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
</EduNetworkBuilder.Properties.Settings>
|
</EduNetworkBuilder.Properties.Settings>
|
||||||
</userSettings>
|
</userSettings>
|
||||||
</configuration>
|
</configuration>
|
@ -32,6 +32,7 @@ namespace EduNetworkBuilder
|
|||||||
public int MainWindowHeight = -1;
|
public int MainWindowHeight = -1;
|
||||||
public string ProcessingLevel = "none";
|
public string ProcessingLevel = "none";
|
||||||
public UInt32 NextID = 100;
|
public UInt32 NextID = 100;
|
||||||
|
public bool AutoDHCPAllMachinesAtNetworkLoad = false; //Mainly for teachers
|
||||||
|
|
||||||
public NBSettings()
|
public NBSettings()
|
||||||
{
|
{
|
||||||
@ -63,6 +64,7 @@ namespace EduNetworkBuilder
|
|||||||
ToClass.MainWindowHeight = FromClass.MainWindowHeight;
|
ToClass.MainWindowHeight = FromClass.MainWindowHeight;
|
||||||
ToClass.MainWindowWidth = FromClass.MainWindowWidth;
|
ToClass.MainWindowWidth = FromClass.MainWindowWidth;
|
||||||
ToClass.BelongsToUser = FromClass.BelongsToUser;
|
ToClass.BelongsToUser = FromClass.BelongsToUser;
|
||||||
|
ToClass.AutoDHCPAllMachinesAtNetworkLoad = FromClass.AutoDHCPAllMachinesAtNetworkLoad;
|
||||||
|
|
||||||
foreach (string one in FromClass.ScoreList)
|
foreach (string one in FromClass.ScoreList)
|
||||||
{
|
{
|
||||||
@ -114,6 +116,7 @@ namespace EduNetworkBuilder
|
|||||||
MainWindowY = Properties.Settings.Default.MainWindowY;
|
MainWindowY = Properties.Settings.Default.MainWindowY;
|
||||||
MainWindowHeight = Properties.Settings.Default.MainWindowHeight;
|
MainWindowHeight = Properties.Settings.Default.MainWindowHeight;
|
||||||
MainWindowWidth = Properties.Settings.Default.MainWindowWidth;
|
MainWindowWidth = Properties.Settings.Default.MainWindowWidth;
|
||||||
|
AutoDHCPAllMachinesAtNetworkLoad = Properties.Settings.Default.AutoDHCP;
|
||||||
|
|
||||||
foreach(string one in Properties.Settings.Default.ScoreList)
|
foreach(string one in Properties.Settings.Default.ScoreList)
|
||||||
{
|
{
|
||||||
@ -243,6 +246,7 @@ namespace EduNetworkBuilder
|
|||||||
Properties.Settings.Default.MainWindowY = MainWindowY;
|
Properties.Settings.Default.MainWindowY = MainWindowY;
|
||||||
Properties.Settings.Default.MainWindowHeight = MainWindowHeight;
|
Properties.Settings.Default.MainWindowHeight = MainWindowHeight;
|
||||||
Properties.Settings.Default.MainWindowWidth = MainWindowWidth;
|
Properties.Settings.Default.MainWindowWidth = MainWindowWidth;
|
||||||
|
Properties.Settings.Default.AutoDHCP = AutoDHCPAllMachinesAtNetworkLoad;
|
||||||
|
|
||||||
Properties.Settings.Default.ScoreList.Clear();
|
Properties.Settings.Default.ScoreList.Clear();
|
||||||
foreach(string One in ScoreList)
|
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;
|
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">
|
<Setting Name="RecentFiles" Type="System.Collections.Specialized.StringCollection" Scope="User">
|
||||||
<Value Profile="(Default)" />
|
<Value Profile="(Default)" />
|
||||||
</Setting>
|
</Setting>
|
||||||
|
<Setting Name="AutoDHCP" Type="System.Boolean" Scope="User">
|
||||||
|
<Value Profile="(Default)">False</Value>
|
||||||
|
</Setting>
|
||||||
</Settings>
|
</Settings>
|
||||||
</SettingsFile>
|
</SettingsFile>
|
Loading…
Reference in New Issue
Block a user