From c47bb5a2d6f4a5d29638119a32185421b9dea7e9 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 09:59:46 +0000 Subject: Utilisateur : Fcolin Date : 16/01/06 Heure : 13:58 Créé Commentaire: (vss 1) --- CSharp/Ivy/IvyPPC/IvyDomain.cs | 127 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 127 insertions(+) create mode 100644 CSharp/Ivy/IvyPPC/IvyDomain.cs (limited to 'CSharp/Ivy/IvyPPC') diff --git a/CSharp/Ivy/IvyPPC/IvyDomain.cs b/CSharp/Ivy/IvyPPC/IvyDomain.cs new file mode 100644 index 0000000..37d397f --- /dev/null +++ b/CSharp/Ivy/IvyPPC/IvyDomain.cs @@ -0,0 +1,127 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Drawing; +using System.Data; +using System.Text; +using System.Windows.Forms; + +namespace IvyBus +{ + public partial class IvyDomain : UserControl + { + //string domain; + //string appname; + //string ready; + public Ivy ivy; + + [Category("Ivy")] + public string AppName + { + get { return appname.Text; } + set { appname.Text = value; } + } + + [Category("Ivy")] + public string Ready + { + get { return ready.Text; } + set { ready.Text = value; } + } + + [Category("Ivy")] + public string Domain + { + get { return domain.Text; } + set { domain.Text = value; } + } + [Category("Ivy")] + public event Ivy.ClientConnectedHandler clientConnected + { + add + { + ivy.clientConnected += value; + } + remove + { + ivy.clientConnected -= value; + } + } + [Category("Ivy")] + public event Ivy.ClientDisconnectedHandler clientDisconnected + { + add + { + ivy.clientDisconnected += value; + } + remove + { + ivy.clientDisconnected -= value; + } + } + [Category("Ivy")] + public event Ivy.ClientAddBindingHandler addBinding + { + add + { + ivy.addBinding += value; + } + remove + { + ivy.addBinding -= value; + } + } + [Category("Ivy")] + public event Ivy.ClientRemoveBindingHandler removeBinding + { + add + { + ivy.removeBinding += value; + } + remove + { + ivy.removeBinding -= value; + } + } + [Category("Ivy")] + public event Ivy.DieHandler dieReceived + { + add + { + ivy.dieReceived += value; + } + remove + { + ivy.dieReceived -= value; + } + } + [Category("Ivy")] + public event Ivy.DirectMessageHandler directMessageReceived + { + add + { + ivy.directMessageReceived += value; + } + remove + { + ivy.directMessageReceived -= value; + } + } + public IvyDomain() + { + InitializeComponent(); + ivy = new Ivy(this); + } + + private void textBox1_Validating(object sender, CancelEventArgs e) + { + e.Cancel = false; + } + + private void textBox1_Validated(object sender, EventArgs e) + { + ivy.stop(); + ivy.start(domain.Text); + } + } +} -- cgit v1.1