summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrant Limberg <glimberg@gmail.com>2015-10-23 15:50:49 -0700
committerGrant Limberg <glimberg@gmail.com>2015-10-23 15:50:49 -0700
commit55dcf4c65f7876a38e947b808449d4014c43ff17 (patch)
treeaedb4fac14c6c354b85731ca58bb0167f69f15a3
parent7e635d37ad6cfa1195c8f141dd533564e478cc36 (diff)
downloadinfinitytier-55dcf4c65f7876a38e947b808449d4014c43ff17.tar.gz
infinitytier-55dcf4c65f7876a38e947b808449d4014c43ff17.zip
wire up the join network button
-rw-r--r--windows/WinUI/MainWindow.xaml.cs9
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)