コード例 #1
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     disp = display;
     if (ipaddr.Text.Equals(String.Empty) || portNumber.Text.Equals(String.Empty) || clientName.Text.Equals(String.Empty))
     {
         disp.Text = "Please fill all the fields...";
     }
     else
     {
         ClientSocketApplication.RunClient(ipaddr.Text, portNumber.Text, clientName.Text);
         Connect.IsEnabled = false;
     }
     //ipaddr.Visibility = Visibility.Hidden;
 }
コード例 #2
0
 private void Button_Click_1(object sender, RoutedEventArgs e)
 {
     ClientSocketApplication.Send(Message.Text);
     disp.Text   += "\n" + Message.Text;
     Message.Text = String.Empty;
 }