private void Button_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         peer?.Dispose();
         var port = int.Parse((FindName("Port") as TextBox).Text);
         peer = new Peer(port, new IPEndPoint(IPAddress.Parse("47.93.189.12"), 5000));
         peer.AddLiveAudioChatHandler();
         peer.AddHandler <ChatHandler>();
         Content = new ConnectPage(peer, this);
     }
     catch (Exception)
     {
         MessageBox.Show("请输入合法的端口值!");
     }
 }