Browse Source

wire up the join network button

Grant Limberg 9 years ago
parent
commit
55dcf4c65f
1 changed files with 8 additions and 1 deletions
  1. 8 1
      windows/WinUI/MainWindow.xaml.cs

+ 8 - 1
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)