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(); } }
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"; } }