You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-15 22:56:30 +09:00
SpeedSample added
This commit is contained in:
36
Samples/LibraryTestSamples/SpeedSample/SpeedServer/Form1.cs
Normal file
36
Samples/LibraryTestSamples/SpeedSample/SpeedServer/Form1.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace SpeedTestServer
|
||||
{
|
||||
public partial class Form1 : Form
|
||||
{
|
||||
public Form1()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
Program.DisplaySettings();
|
||||
}
|
||||
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (button2.Text == "Start")
|
||||
{
|
||||
Program.Start();
|
||||
button2.Text = "Shutdown";
|
||||
}
|
||||
else
|
||||
{
|
||||
Program.Shutdown();
|
||||
button2.Text = "Start";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user