summaryrefslogtreecommitdiff
path: root/CSharp/Ivy
diff options
context:
space:
mode:
authorfcolin2007-02-01 09:48:57 +0000
committerfcolin2007-02-01 09:48:57 +0000
commit04b64a82e02f628904f1c6d5119835cc5c1e6edd (patch)
treeea512e01eca1d556610604ab4efe1ded83f3a070 /CSharp/Ivy
parent5c9b38030addfbd2051f148cb4b873cff1f809fb (diff)
downloadivy-csharp-04b64a82e02f628904f1c6d5119835cc5c1e6edd.zip
ivy-csharp-04b64a82e02f628904f1c6d5119835cc5c1e6edd.tar.gz
ivy-csharp-04b64a82e02f628904f1c6d5119835cc5c1e6edd.tar.bz2
ivy-csharp-04b64a82e02f628904f1c6d5119835cc5c1e6edd.tar.xz
Utilisateur : Fcolin Date : 10/02/06 Heure : 17:58 Archivé dans $/CSharp/Ivy/Ivy Commentaire: Pb with default value fixed at Design Time (vss 20)
Diffstat (limited to 'CSharp/Ivy')
-rw-r--r--CSharp/Ivy/Ivy/IvyDomain.cs15
1 files changed, 12 insertions, 3 deletions
diff --git a/CSharp/Ivy/Ivy/IvyDomain.cs b/CSharp/Ivy/Ivy/IvyDomain.cs
index a9f215b..163374f 100644
--- a/CSharp/Ivy/Ivy/IvyDomain.cs
+++ b/CSharp/Ivy/Ivy/IvyDomain.cs
@@ -28,10 +28,19 @@ namespace IvyBus
public IvyDomain()
{
InitializeComponent();
- domain = Ivy.getDomain(domain);
- ivybus.Text = domain;
}
-
+ public void SetDefault()
+ {
+ if (IsEmpty())
+ {
+ domain = Ivy.getDomain(domain);
+ ivybus.Text = domain;
+ }
+ }
+ public bool IsEmpty()
+ {
+ return domain == "";
+ }
private void ivybus_Validating(object sender, CancelEventArgs e)
{