From 2ad23f97df3e3237f326a9f3835aa2e295f20227 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 09:48:23 +0000 Subject: Utilisateur : Fcolin Date : 17/01/06 Heure : 13:07 Archivé dans $/CSharp/Ivy/Ivy Commentaire: (vss 3) --- CSharp/Ivy/Ivy/IvyDomain.cs | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) (limited to 'CSharp') diff --git a/CSharp/Ivy/Ivy/IvyDomain.cs b/CSharp/Ivy/Ivy/IvyDomain.cs index 60b6515..4fe60bf 100644 --- a/CSharp/Ivy/Ivy/IvyDomain.cs +++ b/CSharp/Ivy/Ivy/IvyDomain.cs @@ -11,26 +11,28 @@ namespace IvyBus public partial class IvyDomain : UserControl { public Ivy ivy; + private string appname; + private string ready; [Category("Ivy")] public string AppName { - get { return appname.Text; } - set { appname.Text = value; } + get { return appname; } + set { appname = value; } } [Category("Ivy")] - public string Ready + public string AppReadyMessage { - get { return ready.Text; } - set { ready.Text = value; } + get { return ready; } + set { ready = value; } } [Category("Ivy")] public string Domain { - get { return domain.Text; } - set { domain.Text = value; } + get { return ivybus.Text; } + set { ivybus.Text = value; } } [Category("Ivy")] public event Ivy.ClientConnectedHandler clientConnected @@ -104,12 +106,15 @@ namespace IvyBus ivy.directMessageReceived -= value; } } + + public IvyDomain() { InitializeComponent(); - ivy = new Ivy(this); + ivy = new Ivy(appname,ready,this); } + private void textBox1_Validating(object sender, CancelEventArgs e) { e.Cancel = false; @@ -118,7 +123,13 @@ namespace IvyBus private void textBox1_Validated(object sender, EventArgs e) { ivy.stop(); - ivy.start(domain.Text); + ivy.start(ivybus.Text); } + + private void toolStripContainer1_TopToolStripPanel_Click(object sender, EventArgs e) + { + + } + } } -- cgit v1.1