1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-15 22:56:30 +09:00

ImageSample sample added

This commit is contained in:
lidgren
2010-10-30 21:29:10 +00:00
parent f589208841
commit e866600c98
24 changed files with 1818 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Lidgren.Network;
using SamplesCommon;
namespace ImageClient
{
public partial class Form1 : Form
{
private NetPeer m_dummyPeer;
private NetPeerConfiguration m_config;
public Form1()
{
m_config = new NetPeerConfiguration("ImageTransfer");
m_dummyPeer = new NetPeer(m_config);
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Program.SpawnGetter(textBox1.Text, m_config);
}
private void button2_Click(object sender, EventArgs e)
{
NetPeerSettingsWindow win = new NetPeerSettingsWindow("Client settings", m_dummyPeer);
win.Show();
}
}
}