From 04b64a82e02f628904f1c6d5119835cc5c1e6edd Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 09:48:57 +0000 Subject: 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) --- CSharp/Ivy/Ivy/IvyDomain.cs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'CSharp') 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) { -- cgit v1.1