diff options
-rw-r--r-- | windows/WinUI/MainWindow.xaml.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/windows/WinUI/MainWindow.xaml.cs b/windows/WinUI/MainWindow.xaml.cs index 3c4f0b59..3e00255c 100644 --- a/windows/WinUI/MainWindow.xaml.cs +++ b/windows/WinUI/MainWindow.xaml.cs @@ -49,7 +49,14 @@ namespace WinUI private void joinButton_Click(object sender, RoutedEventArgs e) { - + if (joinNetworkID.Text.Length < 16) + { + MessageBox.Show("Invalid Network ID"); + } + else + { + handler.JoinNetwork(joinNetworkID.Text); + } } private void OnNetworkEntered(object sender, TextCompositionEventArgs e) |