Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
1 change: 1 addition & 0 deletions Source/AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See [AGENTS.md](../AGENTS.md) in the repository root for project guidelines and conventions.
Comment thread
BornToBeRoot marked this conversation as resolved.
4 changes: 2 additions & 2 deletions Source/GlobalAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

[assembly: AssemblyVersion("2026.4.26.0")]
[assembly: AssemblyFileVersion("2026.4.26.0")]
[assembly: AssemblyVersion("2026.5.3.0")]
[assembly: AssemblyFileVersion("2026.5.3.0")]
31 changes: 31 additions & 0 deletions Source/NETworkManager.Converters/NeighborStateToStringConverter.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using System;
using System.Globalization;
using System.Windows.Data;
using NETworkManager.Localization;
using NETworkManager.Models.Network;

namespace NETworkManager.Converters;

/// <summary>
/// Convert <see cref="NeighborState" /> to a translated <see cref="string" />.
/// </summary>
public sealed class NeighborStateToStringConverter : IValueConverter
{
/// <summary>
/// Convert <see cref="NeighborState" /> to a translated <see cref="string" />.
/// </summary>
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
return value is not NeighborState state
? "-/-"
: ResourceTranslator.Translate(ResourceIdentifier.NeighborState, state);
}

/// <summary>
/// !!! Method not implemented !!!
/// </summary>
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ public enum DocumentationIdentifier
ApplicationListeners,

/// <summary>
/// ARP Table documentation page.
/// Neighbor Table documentation page.
/// </summary>
ApplicationArpTable,
ApplicationNeighborTable,

/// <summary>
/// Settings\General documentation page.
Expand Down
6 changes: 3 additions & 3 deletions Source/NETworkManager.Documentation/DocumentationManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ public static class DocumentationManager
new DocumentationInfo(DocumentationIdentifier.ApplicationListeners,
@"docs/application/listeners"),

new DocumentationInfo(DocumentationIdentifier.ApplicationArpTable,
@"docs/application/arp-table"),
new DocumentationInfo(DocumentationIdentifier.ApplicationNeighborTable,
@"docs/application/neighbor-table"),

new DocumentationInfo(DocumentationIdentifier.SettingsGeneral,
@"docs/settings/general"),
Expand Down Expand Up @@ -228,7 +228,7 @@ public static DocumentationIdentifier GetIdentifierByApplicationName(Application
ApplicationName.Lookup => DocumentationIdentifier.ApplicationLookup,
ApplicationName.Connections => DocumentationIdentifier.ApplicationConnections,
ApplicationName.Listeners => DocumentationIdentifier.ApplicationListeners,
ApplicationName.ARPTable => DocumentationIdentifier.ApplicationArpTable,
ApplicationName.NeighborTable => DocumentationIdentifier.ApplicationNeighborTable,
ApplicationName.None => DocumentationIdentifier.Default,
_ => DocumentationIdentifier.Default
};
Expand Down
3 changes: 2 additions & 1 deletion Source/NETworkManager.Localization/ResourceIdentifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ public enum ResourceIdentifier
FirewallProtocol,
FirewallInterfaceType,
FirewallRuleDirection,
FirewallRuleAction
FirewallRuleAction,
NeighborState
}
Loading
Loading