diff --git a/README.md b/README.md
index 6886d12..df5442c 100644
--- a/README.md
+++ b/README.md
@@ -1037,8 +1037,10 @@ at the node as well, because that is less traffic on the wire.
### Networked stations
-**Config → Edit Networked-Computer Names** names this station and sets the
-port it listens on. **Config → Configure Broadcast Data** is N1MM's Broadcast
+The **Stations Configuration** button on the Options tab of Network Status
+names this station, sets the port it listens on and lists the stations to
+reach by address. The station number, link
+port and version to claim are on the Options tab of Network Status. **Config → Configure Broadcast Data** is N1MM's Broadcast
Data tab: seven kinds of data, each with an on/off box and a list of
`address:port` pairs separated by spaces. An empty list sends to `127.0.0.1` on
N1MM's port for that kind: 12060, except the score on 12050 and the rotor on
diff --git a/src/Nonemm.App/Dialogs/NetworkDialog.axaml b/src/Nonemm.App/Dialogs/NetworkDialog.axaml
deleted file mode 100644
index efdfcd1..0000000
--- a/src/Nonemm.App/Dialogs/NetworkDialog.axaml
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/Nonemm.App/Dialogs/StationsConfigDialog.axaml b/src/Nonemm.App/Dialogs/StationsConfigDialog.axaml
new file mode 100644
index 0000000..7cfdd00
--- /dev/null
+++ b/src/Nonemm.App/Dialogs/StationsConfigDialog.axaml
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Nonemm.App/Dialogs/NetworkDialog.axaml.cs b/src/Nonemm.App/Dialogs/StationsConfigDialog.axaml.cs
similarity index 66%
rename from src/Nonemm.App/Dialogs/NetworkDialog.axaml.cs
rename to src/Nonemm.App/Dialogs/StationsConfigDialog.axaml.cs
index 17ab6a2..034c8fc 100644
--- a/src/Nonemm.App/Dialogs/NetworkDialog.axaml.cs
+++ b/src/Nonemm.App/Dialogs/StationsConfigDialog.axaml.cs
@@ -4,11 +4,11 @@ using Nonemm.App.Configuration;
namespace Nonemm.App.Dialogs;
-public sealed partial class NetworkDialog : Window
+public sealed partial class StationsConfigDialog : Window
{
private readonly Settings settings;
- public NetworkDialog(Settings settings)
+ public StationsConfigDialog(Settings settings)
{
this.settings = settings;
InitializeComponent();
@@ -16,25 +16,14 @@ public sealed partial class NetworkDialog : Window
? settings.NetworkStationName
: Environment.MachineName;
PortBox.Text = settings.NetworkPort.ToString();
- StationNumberBox.Text = settings.StationNumber.ToString();
- LinkPortBox.Text = settings.StationLinkPort.ToString();
- VersionBox.Text = settings.StationLinkVersion;
LinkPeersBox.Text = string.Join("\n", settings.StationLinkPeers);
LinkEnabledBox.IsChecked = settings.StationLinkEnabled;
}
-
private void OnSave(object? sender, RoutedEventArgs e) => Close(settings with
{
NetworkStationName = (NameBox.Text ?? "").Trim(),
NetworkPort = int.TryParse(PortBox.Text, out int port) ? port : 12060,
- StationNumber = int.TryParse(StationNumberBox.Text, out int number)
- ? Math.Clamp(number, 1, 99)
- : settings.StationNumber,
- StationLinkPort = int.TryParse(LinkPortBox.Text, out int linkPort)
- ? linkPort
- : settings.StationLinkPort,
- StationLinkVersion = (VersionBox.Text ?? "").Trim(),
StationLinkPeers = Lines(LinkPeersBox.Text),
StationLinkEnabled = LinkEnabledBox.IsChecked == true,
});
diff --git a/src/Nonemm.App/Windows/EntryWindow.Menu.cs b/src/Nonemm.App/Windows/EntryWindow.Menu.cs
index d5d21dc..4d7c72e 100644
--- a/src/Nonemm.App/Windows/EntryWindow.Menu.cs
+++ b/src/Nonemm.App/Windows/EntryWindow.Menu.cs
@@ -559,19 +559,6 @@ public sealed partial class EntryWindow
Refresh();
}
- private async void OnNetworkSettings(object? sender, RoutedEventArgs e)
- {
- NetworkDialog dialog = new(session.Settings);
- Settings? updated = await dialog.ShowDialog(this);
- if (updated is not null)
- {
- session.Save(updated);
- session.ApplyNetworkSettings();
- session.ApplyStationLinkSettings();
- Status(Networking(updated));
- }
- }
-
private async void OnBandmapSettings(object? sender, RoutedEventArgs e)
{
BandmapDialog dialog = new(session.Settings);
@@ -596,16 +583,6 @@ public sealed partial class EntryWindow
}
}
- /// What the two networks are now doing, for the status line.
- private static string Networking(Settings settings) =>
- (settings.NetworkEnabled, settings.StationLinkEnabled) switch
- {
- (true, true) => "broadcasting contacts and linked to the other computers",
- (true, false) => "broadcasting contacts to other programs",
- (false, true) => "linked to the other logging computers",
- _ => "networking off",
- };
-
private async void OnKeyerSettings(object? sender, RoutedEventArgs e)
{
KeyerDialog dialog = new(session.Settings);
diff --git a/src/Nonemm.App/Windows/EntryWindow.axaml b/src/Nonemm.App/Windows/EntryWindow.axaml
index f58946a..af4b060 100644
--- a/src/Nonemm.App/Windows/EntryWindow.axaml
+++ b/src/Nonemm.App/Windows/EntryWindow.axaml
@@ -114,7 +114,6 @@
-