Skip to content

Commit ee8eeb2

Browse files
committed
Refactoring
1 parent c7de89f commit ee8eeb2

14 files changed

Lines changed: 195 additions & 13 deletions

File tree

Source/NETworkManager.Converters/NETworkManager.Converters.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<DefineConstants>DEBUG;TRACE</DefineConstants>
2222
<ErrorReport>prompt</ErrorReport>
2323
<WarningLevel>4</WarningLevel>
24+
<DocumentationFile>bin\Debug\NETworkManager.Converters.xml</DocumentationFile>
2425
</PropertyGroup>
2526
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2627
<DebugType>pdbonly</DebugType>

Source/NETworkManager.Localization/NETworkManager.Localization.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<DefineConstants>DEBUG;TRACE</DefineConstants>
2222
<ErrorReport>prompt</ErrorReport>
2323
<WarningLevel>4</WarningLevel>
24+
<DocumentationFile>bin\Debug\NETworkManager.Localization.xml</DocumentationFile>
2425
</PropertyGroup>
2526
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2627
<DebugType>pdbonly</DebugType>

Source/NETworkManager.Models/Application.cs

Lines changed: 102 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
namespace NETworkManager.Models
88
{
9+
/// <summary>
10+
/// Class provides methods to manage networkmanger applications.
11+
/// </summary>
912
public static class Application
1013
{
1114
/// <summary>
@@ -125,31 +128,129 @@ public static Canvas GetIcon(Name name)
125128
/// </summary>
126129
public enum Name
127130
{
131+
/// <summary>
132+
/// No application.
133+
/// </summary>
128134
None,
135+
136+
/// <summary>
137+
/// Dashboard application.
138+
/// </summary>
129139
Dashboard,
140+
141+
/// <summary>
142+
/// Network interface application.
143+
/// </summary>
130144
NetworkInterface,
145+
146+
/// <summary>
147+
/// WiFi application.
148+
/// </summary>
131149
WiFi,
150+
151+
/// <summary>
152+
/// IP scanner application.
153+
/// </summary>
132154
IPScanner,
155+
156+
/// <summary>
157+
/// Port scanner application.
158+
/// </summary>
133159
PortScanner,
160+
161+
/// <summary>
162+
/// Ping application.
163+
/// </summary>
134164
Ping,
165+
166+
/// <summary>
167+
/// Ping monitor application.
168+
/// </summary>
135169
PingMonitor,
170+
171+
/// <summary>
172+
/// Traceroute application.
173+
/// </summary>
136174
Traceroute,
175+
176+
/// <summary>
177+
/// DNS lookup application.
178+
/// </summary>
137179
DNSLookup,
180+
181+
/// <summary>
182+
/// Remote Desktop application.
183+
/// </summary>
138184
RemoteDesktop,
185+
186+
/// <summary>
187+
/// PowerShell application.
188+
/// </summary>
139189
PowerShell,
190+
191+
/// <summary>
192+
/// PuTTY application.
193+
/// </summary>
140194
PuTTY,
195+
196+
/// <summary>
197+
/// TigerVNC application.
198+
/// </summary>
141199
TigerVNC,
200+
201+
/// <summary>
202+
/// WebConsole application.
203+
/// </summary>
142204
WebConsole,
205+
206+
/// <summary>
207+
/// SNMP application.
208+
/// </summary>
143209
SNMP,
210+
211+
/// <summary>
212+
/// Discovery protocol application.
213+
/// </summary>
144214
DiscoveryProtocol,
215+
216+
/// <summary>
217+
/// Wake on LAN application.
218+
/// </summary>
145219
WakeOnLAN,
220+
221+
/// <summary>
222+
/// HTTP Headers application.
223+
/// </summary>
146224
HTTPHeaders,
225+
226+
/// <summary>
227+
/// Whois application.
228+
/// </summary>
147229
Whois,
230+
231+
/// <summary>
232+
/// Subnet calculator application.
233+
/// </summary>
148234
SubnetCalculator,
235+
236+
/// <summary>
237+
/// Lookup application.
238+
/// </summary>
149239
Lookup,
150-
//Routing,
240+
241+
/// <summary>
242+
/// Connections application.
243+
/// </summary>
151244
Connections,
245+
246+
/// <summary>
247+
/// Listeners application.
248+
/// </summary>
152249
Listeners,
250+
251+
/// <summary>
252+
/// ARP table application.
253+
/// </summary>
153254
ARPTable
154255
}
155256
}

Source/NETworkManager.Models/ApplicationInfo.cs

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,32 @@
11
namespace NETworkManager.Models
22
{
3+
/// <summary>
4+
/// Class to store informations about an application.
5+
/// </summary>
36
public class ApplicationInfo
47
{
58
/// <summary>
6-
///
9+
/// Name of the application.
710
/// </summary>
811
public Application.Name Name { get; set; }
912

1013
/// <summary>
11-
///
14+
/// Indicates that the application is visible to the user.
1215
/// </summary>
1316
public bool IsVisible { get; set; }
1417

1518
/// <summary>
16-
///
19+
/// Create an <see cref="ApplicationInfo"/>.
1720
/// </summary>
1821
public ApplicationInfo()
1922
{
2023

2124
}
2225

2326
/// <summary>
24-
///
27+
/// Create an <see cref="ApplicationInfo"/> based on <see cref="Application.Name"/>.
2528
/// </summary>
26-
/// <param name="name"></param>
29+
/// <param name="name"><see cref="Application.Name"/></param>
2730
public ApplicationInfo(Application.Name name)
2831
{
2932
Name = name;
@@ -44,10 +47,10 @@ public bool Equals(ApplicationInfo info)
4447
}
4548

4649
/// <summary>
47-
///
50+
/// Method to check if an object is equal to this object.
4851
/// </summary>
49-
/// <param name="obj"></param>
50-
/// <returns></returns>
52+
/// <param name="obj">Object from type <see cref="ApplicationInfo" />.</param>
53+
/// <returns>Equality as <see cref="bool"/>.</returns>
5154
public override bool Equals(object obj)
5255
{
5356
if (obj is null)
@@ -63,9 +66,9 @@ public override bool Equals(object obj)
6366
}
6467

6568
/// <summary>
66-
///
69+
/// Method to return the hash code of this object.
6770
/// </summary>
68-
/// <returns></returns>
71+
/// <returns>Hashcode as <see cref="int"/>.</returns>
6972
public override int GetHashCode()
7073
{
7174
return Name.GetHashCode();

Source/NETworkManager.Models/NETworkManager.Models.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<DefineConstants>DEBUG;TRACE</DefineConstants>
2222
<ErrorReport>prompt</ErrorReport>
2323
<WarningLevel>4</WarningLevel>
24+
<DocumentationFile>bin\Debug\NETworkManager.Models.xml</DocumentationFile>
2425
</PropertyGroup>
2526
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2627
<DebugType>pdbonly</DebugType>

Source/NETworkManager.Profiles/NETworkManager.Profiles.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<DefineConstants>DEBUG;TRACE</DefineConstants>
2222
<ErrorReport>prompt</ErrorReport>
2323
<WarningLevel>4</WarningLevel>
24+
<DocumentationFile>bin\Debug\NETworkManager.Profiles.xml</DocumentationFile>
2425
</PropertyGroup>
2526
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2627
<DebugType>pdbonly</DebugType>

Source/NETworkManager.Settings/NETworkManager.Settings.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<DefineConstants>DEBUG;TRACE</DefineConstants>
2222
<ErrorReport>prompt</ErrorReport>
2323
<WarningLevel>4</WarningLevel>
24+
<DocumentationFile>bin\Debug\NETworkManager.Settings.xml</DocumentationFile>
2425
</PropertyGroup>
2526
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2627
<DebugType>pdbonly</DebugType>

Source/NETworkManager.Update/NETworkManager.Update.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<DefineConstants>DEBUG;TRACE</DefineConstants>
2222
<ErrorReport>prompt</ErrorReport>
2323
<WarningLevel>4</WarningLevel>
24+
<DocumentationFile>bin\Debug\NETworkManager.Update.xml</DocumentationFile>
2425
</PropertyGroup>
2526
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2627
<DebugType>pdbonly</DebugType>

Source/NETworkManager.Utilities.WPF/BindingProxy.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,32 @@
22

33
namespace NETworkManager.Utilities.WPF
44
{
5+
/// <summary>
6+
///
7+
/// </summary>
58
public class BindingProxy : Freezable
69
{
10+
/// <summary>
11+
///
12+
/// </summary>
13+
/// <returns></returns>
714
protected override Freezable CreateInstanceCore()
815
{
916
return new BindingProxy();
1017
}
1118

19+
/// <summary>
20+
///
21+
/// </summary>
1222
public object Data
1323
{
1424
get => GetValue(DataProperty);
1525
set => SetValue(DataProperty, value);
1626
}
1727

28+
/// <summary>
29+
///
30+
/// </summary>
1831
public static readonly DependencyProperty DataProperty = DependencyProperty.Register("Data", typeof(object), typeof(BindingProxy));
1932
}
2033
}

Source/NETworkManager.Utilities.WPF/NETworkManager.Utilities.WPF.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<DefineConstants>DEBUG;TRACE</DefineConstants>
2222
<ErrorReport>prompt</ErrorReport>
2323
<WarningLevel>4</WarningLevel>
24+
<DocumentationFile>bin\Debug\NETworkManager.Utilities.WPF.xml</DocumentationFile>
2425
</PropertyGroup>
2526
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2627
<DebugType>pdbonly</DebugType>

0 commit comments

Comments
 (0)