summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CSharp/Ivy/IvyPPC/IvyDomain.cs10
1 files changed, 6 insertions, 4 deletions
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);
}
}