diff options
author | fcolin | 2007-02-01 09:48:41 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 09:48:41 +0000 |
commit | 2bc19972fe7a12976092ced60d8822e97179f8ff (patch) | |
tree | a8d7d1c1e8e61cc1a4728bf3b220392a5d355df9 /CSharp | |
parent | 183e471fb3a4ead6cd68811c0e96f61c58878307 (diff) | |
download | ivy-csharp-2bc19972fe7a12976092ced60d8822e97179f8ff.zip ivy-csharp-2bc19972fe7a12976092ced60d8822e97179f8ff.tar.gz ivy-csharp-2bc19972fe7a12976092ced60d8822e97179f8ff.tar.bz2 ivy-csharp-2bc19972fe7a12976092ced60d8822e97179f8ff.tar.xz |
Utilisateur : Fcolin Date : 3/02/06 Heure : 14:57 Archivé dans $/CSharp/Ivy/Ivy Commentaire: (vss 12)
Diffstat (limited to 'CSharp')
-rw-r--r-- | CSharp/Ivy/Ivy/IvyDomain.cs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/CSharp/Ivy/Ivy/IvyDomain.cs b/CSharp/Ivy/Ivy/IvyDomain.cs index ee9f4b1..268a552 100644 --- a/CSharp/Ivy/Ivy/IvyDomain.cs +++ b/CSharp/Ivy/Ivy/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);
}
}
|