From d1b931625d08e8c1be350134683e759e89430d89 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 09:59:49 +0000 Subject: Utilisateur : Fcolin Date : 17/01/06 Heure : 13:07 Archivé dans $/CSharp/Ivy/Ivy Commentaire: (vss 3) --- CSharp/Ivy/IvyPPC/IvyDomain.cs | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/CSharp/Ivy/IvyPPC/IvyDomain.cs b/CSharp/Ivy/IvyPPC/IvyDomain.cs index 60b6515..4fe60bf 100644 --- a/CSharp/Ivy/IvyPPC/IvyDomain.cs +++ b/CSharp/Ivy/IvyPPC/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