Skip to content

Commit c48db9a

Browse files
committed
Chore: Cleanup
1 parent ffcc4eb commit c48db9a

File tree

3 files changed

+32
-32
lines changed

3 files changed

+32
-32
lines changed

Source/NETworkManager.Settings/SettingsInfo.cs

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public DateTime LastBackup
124124
{
125125
if (value == _lastBackup)
126126
return;
127-
127+
128128
_lastBackup = value;
129129
OnPropertyChanged();
130130
}
@@ -1237,7 +1237,7 @@ public ExportFileType IPScanner_ExportFileType
12371237

12381238
#region Port Scanner
12391239

1240-
private ObservableCollection<string> _portScanner_HostHistory = new();
1240+
private ObservableCollection<string> _portScanner_HostHistory = [];
12411241

12421242
public ObservableCollection<string> PortScanner_HostHistory
12431243
{
@@ -1252,7 +1252,7 @@ public ObservableCollection<string> PortScanner_HostHistory
12521252
}
12531253
}
12541254

1255-
private ObservableCollection<string> _portScanner_PortHistory = new();
1255+
private ObservableCollection<string> _portScanner_PortHistory = [];
12561256

12571257
public ObservableCollection<string> PortScanner_PortHistory
12581258
{
@@ -1267,7 +1267,7 @@ public ObservableCollection<string> PortScanner_PortHistory
12671267
}
12681268
}
12691269

1270-
private ObservableCollection<PortProfileInfo> _portScanner_PortProfiles = new();
1270+
private ObservableCollection<PortProfileInfo> _portScanner_PortProfiles = [];
12711271

12721272
public ObservableCollection<PortProfileInfo> PortScanner_PortProfiles
12731273
{
@@ -1590,7 +1590,7 @@ public double PingMonitor_ProfileWidth
15901590

15911591
#region Traceroute
15921592

1593-
private ObservableCollection<string> _traceroute_HostHistory = new();
1593+
private ObservableCollection<string> _traceroute_HostHistory = [];
15941594

15951595
public ObservableCollection<string> Traceroute_HostHistory
15961596
{
@@ -2020,7 +2020,7 @@ public ExportFileType DNSLookup_ExportFileType
20202020

20212021
#region Remote Desktop
20222022

2023-
private ObservableCollection<string> _remoteDesktop_HostHistory = new();
2023+
private ObservableCollection<string> _remoteDesktop_HostHistory = [];
20242024

20252025
public ObservableCollection<string> RemoteDesktop_HostHistory
20262026
{
@@ -2600,7 +2600,7 @@ public double RemoteDesktop_ProfileWidth
26002600

26012601
#region PowerShell
26022602

2603-
private ObservableCollection<string> _powerShell_HostHistory = new();
2603+
private ObservableCollection<string> _powerShell_HostHistory = [];
26042604

26052605
public ObservableCollection<string> PowerShell_HostHistory
26062606
{
@@ -2710,7 +2710,7 @@ public double PowerShell_ProfileWidth
27102710

27112711
#region PuTTY
27122712

2713-
private ObservableCollection<string> _puTTY_HostHistory = new();
2713+
private ObservableCollection<string> _puTTY_HostHistory = [];
27142714

27152715
public ObservableCollection<string> PuTTY_HostHistory
27162716
{
@@ -2860,7 +2860,7 @@ public string PuTTY_AdditionalCommandLine
28602860
}
28612861
}
28622862

2863-
private ObservableCollection<string> _puTTY_SerialLineHistory = new();
2863+
private ObservableCollection<string> _puTTY_SerialLineHistory = [];
28642864

28652865
public ObservableCollection<string> PuTTY_SerialLineHistory
28662866
{
@@ -2875,7 +2875,7 @@ public ObservableCollection<string> PuTTY_SerialLineHistory
28752875
}
28762876
}
28772877

2878-
private ObservableCollection<string> _puTTY_PortHistory = new();
2878+
private ObservableCollection<string> _puTTY_PortHistory = [];
28792879

28802880
public ObservableCollection<string> PuTTY_PortHistory
28812881
{
@@ -2890,7 +2890,7 @@ public ObservableCollection<string> PuTTY_PortHistory
28902890
}
28912891
}
28922892

2893-
private ObservableCollection<string> _puTTY_BaudHistory = new();
2893+
private ObservableCollection<string> _puTTY_BaudHistory = [];
28942894

28952895
public ObservableCollection<string> PuTTY_BaudHistory
28962896
{
@@ -2905,7 +2905,7 @@ public ObservableCollection<string> PuTTY_BaudHistory
29052905
}
29062906
}
29072907

2908-
private ObservableCollection<string> _puTTY_UsernameHistory = new();
2908+
private ObservableCollection<string> _puTTY_UsernameHistory = [];
29092909

29102910
public ObservableCollection<string> PuTTY_UsernameHistory
29112911
{
@@ -2920,7 +2920,7 @@ public ObservableCollection<string> PuTTY_UsernameHistory
29202920
}
29212921
}
29222922

2923-
private ObservableCollection<string> _puTTY_PrivateKeyFileHistory = new();
2923+
private ObservableCollection<string> _puTTY_PrivateKeyFileHistory = [];
29242924

29252925
public ObservableCollection<string> PuTTY_PrivateKeyFileHistory
29262926
{
@@ -2935,7 +2935,7 @@ public ObservableCollection<string> PuTTY_PrivateKeyFileHistory
29352935
}
29362936
}
29372937

2938-
private ObservableCollection<string> _puTTY_ProfileHistory = new();
2938+
private ObservableCollection<string> _puTTY_ProfileHistory = [];
29392939

29402940
public ObservableCollection<string> PuTTY_ProfileHistory
29412941
{
@@ -3090,7 +3090,7 @@ public int PuTTY_RawPort
30903090

30913091
#region TigerVNC
30923092

3093-
private ObservableCollection<string> _tigerVNC_HostHistory = new();
3093+
private ObservableCollection<string> _tigerVNC_HostHistory = [];
30943094

30953095
public ObservableCollection<string> TigerVNC_HostHistory
30963096
{
@@ -3105,7 +3105,7 @@ public ObservableCollection<string> TigerVNC_HostHistory
31053105
}
31063106
}
31073107

3108-
private ObservableCollection<int> _tigerVNC_PortHistory = new();
3108+
private ObservableCollection<int> _tigerVNC_PortHistory = [];
31093109

31103110
public ObservableCollection<int> TigerVNC_PortHistory
31113111
{
@@ -3184,7 +3184,7 @@ public int TigerVNC_Port
31843184

31853185
#region Web Console
31863186

3187-
private ObservableCollection<string> _webConsole_UrlHistory = new();
3187+
private ObservableCollection<string> _webConsole_UrlHistory = [];
31883188

31893189
public ObservableCollection<string> WebConsole_UrlHistory
31903190
{
@@ -3278,7 +3278,7 @@ public bool WebConsole_IsPasswordSaveEnabled
32783278

32793279
#region SNMP
32803280

3281-
private ObservableCollection<string> _snmp_HostHistory = new();
3281+
private ObservableCollection<string> _snmp_HostHistory = [];
32823282

32833283
public ObservableCollection<string> SNMP_HostHistory
32843284
{
@@ -3293,7 +3293,7 @@ public ObservableCollection<string> SNMP_HostHistory
32933293
}
32943294
}
32953295

3296-
private ObservableCollection<string> _snmp_OidHistory = new();
3296+
private ObservableCollection<string> _snmp_OidHistory = [];
32973297

32983298
public ObservableCollection<string> SNMP_OidHistory
32993299
{
@@ -3308,7 +3308,7 @@ public ObservableCollection<string> SNMP_OidHistory
33083308
}
33093309
}
33103310

3311-
private ObservableCollection<SNMPOIDProfileInfo> _snmp_OidProfiles = new();
3311+
private ObservableCollection<SNMPOIDProfileInfo> _snmp_OidProfiles = [];
33123312

33133313
public ObservableCollection<SNMPOIDProfileInfo> SNMP_OidProfiles
33143314
{
@@ -3702,7 +3702,7 @@ public int WakeOnLAN_Port
37023702
}
37033703
}
37043704

3705-
private ObservableCollection<string> _wakeOnLan_MACAddressHistory = new();
3705+
private ObservableCollection<string> _wakeOnLan_MACAddressHistory = [];
37063706

37073707
public ObservableCollection<string> WakeOnLan_MACAddressHistory
37083708
{
@@ -3717,7 +3717,7 @@ public ObservableCollection<string> WakeOnLan_MACAddressHistory
37173717
}
37183718
}
37193719

3720-
private ObservableCollection<string> _wakeOnLan_BroadcastHistory = new();
3720+
private ObservableCollection<string> _wakeOnLan_BroadcastHistory = [];
37213721

37223722
public ObservableCollection<string> WakeOnLan_BroadcastHistory
37233723
{
@@ -3766,7 +3766,7 @@ public double WakeOnLAN_ProfileWidth
37663766

37673767
#region Whois
37683768

3769-
private ObservableCollection<string> _whois_DomainHistory = new();
3769+
private ObservableCollection<string> _whois_DomainHistory = [];
37703770

37713771
public ObservableCollection<string> Whois_DomainHistory
37723772
{
@@ -3845,7 +3845,7 @@ public ExportFileType Whois_ExportFileType
38453845

38463846
#region IP Geolocation
38473847

3848-
private ObservableCollection<string> _ipGeolocation_HostHistory = new();
3848+
private ObservableCollection<string> _ipGeolocation_HostHistory = [];
38493849

38503850
public ObservableCollection<string> IPGeolocation_HostHistory
38513851
{
@@ -3926,7 +3926,7 @@ public ExportFileType IPGeolocation_ExportFileType
39263926

39273927
#region Calculator
39283928

3929-
private ObservableCollection<string> _subnetCalculator_Calculator_SubnetHistory = new();
3929+
private ObservableCollection<string> _subnetCalculator_Calculator_SubnetHistory = [];
39303930

39313931
public ObservableCollection<string> SubnetCalculator_Calculator_SubnetHistory
39323932
{
@@ -3945,7 +3945,7 @@ public ObservableCollection<string> SubnetCalculator_Calculator_SubnetHistory
39453945

39463946
#region Subnetting
39473947

3948-
private ObservableCollection<string> _subnetCalculator_Subnetting_SubnetHistory = new();
3948+
private ObservableCollection<string> _subnetCalculator_Subnetting_SubnetHistory = [];
39493949

39503950
public ObservableCollection<string> SubnetCalculator_Subnetting_SubnetHistory
39513951
{
@@ -3960,7 +3960,7 @@ public ObservableCollection<string> SubnetCalculator_Subnetting_SubnetHistory
39603960
}
39613961
}
39623962

3963-
private ObservableCollection<string> _subnetCalculator_Subnetting_NewSubnetmaskHistory = new();
3963+
private ObservableCollection<string> _subnetCalculator_Subnetting_NewSubnetmaskHistory = [];
39643964

39653965
public ObservableCollection<string> SubnetCalculator_Subnetting_NewSubnetmaskHistory
39663966
{
@@ -4010,7 +4010,7 @@ public ExportFileType SubnetCalculator_Subnetting_ExportFileType
40104010

40114011
#region WideSubnet
40124012

4013-
private ObservableCollection<string> _subnetCalculator_WideSubnet_Subnet1 = new();
4013+
private ObservableCollection<string> _subnetCalculator_WideSubnet_Subnet1 = [];
40144014

40154015
public ObservableCollection<string> SubnetCalculator_WideSubnet_Subnet1
40164016
{
@@ -4025,7 +4025,7 @@ public ObservableCollection<string> SubnetCalculator_WideSubnet_Subnet1
40254025
}
40264026
}
40274027

4028-
private ObservableCollection<string> _subnetCalculator_WideSubnet_Subnet2 = new();
4028+
private ObservableCollection<string> _subnetCalculator_WideSubnet_Subnet2 = [];
40294029

40304030
public ObservableCollection<string> SubnetCalculator_WideSubnet_Subnet2
40314031
{
@@ -4046,7 +4046,7 @@ public ObservableCollection<string> SubnetCalculator_WideSubnet_Subnet2
40464046

40474047
#region Bit Calculator
40484048

4049-
private ObservableCollection<string> _bitCalculator_InputHistory = new();
4049+
private ObservableCollection<string> _bitCalculator_InputHistory = [];
40504050

40514051
public ObservableCollection<string> BitCalculator_InputHistory
40524052
{

Source/NETworkManager.Settings/SettingsManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public static void Load()
181181
Backup(legacyFilePath,
182182
GetSettingsBackupFolderLocation(),
183183
$"{TimestampHelper.GetTimestamp()}_{GetLegacySettingsFileName()}");
184-
184+
185185
File.Delete(legacyFilePath);
186186

187187
Log.Info("Settings migration from XML to JSON completed successfully.");

Source/NETworkManager/App.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ by BornToBeRoot
9494
catch (InvalidOperationException ex)
9595
{
9696
Log.Error("Could not load application settings!", ex);
97-
97+
9898
HandleCorruptedSettingsFile();
9999
}
100100
catch (JsonException ex)

0 commit comments

Comments
 (0)