You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-16 07:06:30 +09:00
SpeedSample added
This commit is contained in:
32
Samples/LibraryTestSamples/SpeedSample/SpeedClient/Form1.cs
Normal file
32
Samples/LibraryTestSamples/SpeedSample/SpeedClient/Form1.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user