diff options
author | fcolin | 2007-02-01 10:00:03 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 10:00:03 +0000 |
commit | d71ea5913acbf9a9cfd51ea854680e51536398e6 (patch) | |
tree | 2a40cd38c6e25326d46f054dde737d5154a9035e | |
parent | 9a3757d323e08ce4da76e0c92af002f35c5516f8 (diff) | |
download | ivy-csharp-d71ea5913acbf9a9cfd51ea854680e51536398e6.zip ivy-csharp-d71ea5913acbf9a9cfd51ea854680e51536398e6.tar.gz ivy-csharp-d71ea5913acbf9a9cfd51ea854680e51536398e6.tar.bz2 ivy-csharp-d71ea5913acbf9a9cfd51ea854680e51536398e6.tar.xz |
Utilisateur : Fcolin Date : 24/01/06 Heure : 15:44 Archivé dans $/CSharp/Ivy/Ivy Commentaire: (vss 10)
-rw-r--r-- | CSharp/Ivy/IvyPPC/IvyDomain.cs | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/CSharp/Ivy/IvyPPC/IvyDomain.cs b/CSharp/Ivy/IvyPPC/IvyDomain.cs index 55e45bf..754ed0e 100644 --- a/CSharp/Ivy/IvyPPC/IvyDomain.cs +++ b/CSharp/Ivy/IvyPPC/IvyDomain.cs @@ -10,18 +10,15 @@ namespace IvyBus {
public partial class IvyDomain : UserControl
{
- private Ivy bus;
-
- public Ivy Bus
- {
- get { return bus; }
- set { bus = value; }
- }
+ public event EventHandler DomainChanged;
[Category("Ivy")]
public string Domain
{
get { return ivybus.Text; }
- set { ivybus.Text = value; }
+ set {
+ ivybus.Text = value;
+ if (DomainChanged != null ) DomainChanged(this, EventArgs.Empty);
+ }
}
public IvyDomain()
@@ -32,25 +29,17 @@ namespace IvyBus private void ivybus_Validating(object sender, CancelEventArgs e)
{
- e.Cancel = false;
+ e.Cancel = !Ivy.ValidatingDomain(ivybus.Text);
}
private void ivybus_Validated(object sender, EventArgs e)
{
- if (bus != null)
- {
- bus.stop();
- bus.start(ivybus.Text);
- }
+ Domain = ivybus.Text;
}
private void IvyDomain_Load(object sender, EventArgs e)
{
ivybus.Text = Ivy.getDomain(ivybus.Text);
- if (bus != null)
- {
- bus.start(ivybus.Text);
- }
}
}
|