1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-13 21:56:29 +09:00
Files
lidgren-network-gen3/Samples/LibraryTestSamples/SpeedSample/SpeedClient/Form1.cs
2010-11-03 13:18:23 +00:00

33 lines
703 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace SpeedTestClient
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
comboBox1.SelectedIndex = 0;
}
private void button2_Click(object sender, EventArgs e)
{
int seqChan;
Int32.TryParse(textBox3.Text, out seqChan);
int port;
Int32.TryParse(textBox2.Text, out port);
Program.Connect(textBox1.Text, port, comboBox1.SelectedItem.ToString(), seqChan);
}
private void button1_Click(object sender, EventArgs e)
{
Program.DisplaySettings();
}
}
}