From 0aee91bf85369ea109622752a4014556bafa21e2 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 10:00:07 +0000 Subject: Utilisateur : Fcolin Date : 3/02/06 Heure : 14:57 Archivé dans $/CSharp/Ivy/Ivy Commentaire: (vss 12) --- CSharp/Ivy/IvyPPC/IvyDomain.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'CSharp/Ivy/IvyPPC') diff --git a/CSharp/Ivy/IvyPPC/IvyDomain.cs b/CSharp/Ivy/IvyPPC/IvyDomain.cs index ee9f4b1..268a552 100644 --- a/CSharp/Ivy/IvyPPC/IvyDomain.cs +++ b/CSharp/Ivy/IvyPPC/IvyDomain.cs @@ -10,15 +10,16 @@ namespace IvyBus { public partial class IvyDomain : UserControl { + private string domain = null; public event EventHandler DomainChanged; [Category("Ivy")] [DefaultValue("")] [Bindable(true)] public string Domain { - get { return ivybus.Text; } + get { return domain; } set { - ivybus.Text = value; + domain = value; if (DomainChanged != null ) DomainChanged(this, EventArgs.Empty); } } @@ -36,12 +37,13 @@ namespace IvyBus private void ivybus_Validated(object sender, EventArgs e) { - Domain = ivybus.Text; + if ( domain != ivybus.Text ) + Domain = ivybus.Text; } private void IvyDomain_Load(object sender, EventArgs e) { - ivybus.Text = Ivy.getDomain(ivybus.Text); + ivybus.Text = Ivy.getDomain(domain); } } -- cgit v1.1