示例#1
0
 private void JoinButton_Click(object sender, RoutedEventArgs e)
 {
     client.SendRoomConnect(RoomCodeTextBox.Text);
     if (joined)
     {
         WaitRoom wr = new WaitRoom(client);
         wr.roomcode = RoomCodeTextBox.Text;
         wr.Show();
         this.Close();
     }
 }
示例#2
0
 private void CreateButton_Click(object sender, RoutedEventArgs e)
 {
     if (nameSet == true)
     {
         WaitRoom wr = new WaitRoom(client);
         wr.Show();
         client.SendRoomCreate(UsernameTextBox.Text);
         this.Close();
     }
     else
     {
         UsernameTextBox.Text = "Set Name First";
     }
 }