diff options
author | fcolin | 2007-02-01 12:03:55 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 12:03:55 +0000 |
commit | 98ab5d0164040427f7c554febae125686284e2a7 (patch) | |
tree | a6ab9c20fbf1172553d364c91447149e4dc72ab0 /Ivy/IvyPPC/IvyDomain.cs | |
parent | 531dfa4389ba34a0d32eed0ba8c82839e437d992 (diff) | |
download | ivy-csharp-98ab5d0164040427f7c554febae125686284e2a7.zip ivy-csharp-98ab5d0164040427f7c554febae125686284e2a7.tar.gz ivy-csharp-98ab5d0164040427f7c554febae125686284e2a7.tar.bz2 ivy-csharp-98ab5d0164040427f7c554febae125686284e2a7.tar.xz |
modification structure svn
Diffstat (limited to 'Ivy/IvyPPC/IvyDomain.cs')
-rw-r--r-- | Ivy/IvyPPC/IvyDomain.cs | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/Ivy/IvyPPC/IvyDomain.cs b/Ivy/IvyPPC/IvyDomain.cs deleted file mode 100644 index 6c43b73..0000000 --- a/Ivy/IvyPPC/IvyDomain.cs +++ /dev/null @@ -1,60 +0,0 @@ -using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Text;
-using System.Windows.Forms;
-
-namespace IvyBus
-{
- public partial class IvyDomain : UserControl
- {
- private string domain = "";
- public event EventHandler DomainChanged;
-#if (!PocketPC)
- [Category("Ivy")]
- [DefaultValue("")]
- [Bindable(true)]
-#endif
- public string Domain
- {
- get { return domain; }
- set {
- if (domain != value)
- {
- domain = value;
- ivybus.Text = domain;
- if (DomainChanged != null) DomainChanged(this, EventArgs.Empty);
- }
- }
- }
-
- public IvyDomain()
- {
- InitializeComponent();
- }
- public void SetDefault()
- {
- if (IsEmpty())
- {
- domain = Ivy.GetDomain(domain);
- ivybus.Text = domain;
- }
- }
- public bool IsEmpty()
- {
- return String.IsNullOrEmpty( domain );
- }
-
- private void ivybus_Validating(object sender, CancelEventArgs e)
- {
- e.Cancel = !Ivy.ValidatingDomain(ivybus.Text);
- }
-
- private void ivybus_Validated(object sender, EventArgs e)
- {
- if ( domain != ivybus.Text )
- Domain = ivybus.Text;
- }
-
- }
-}
|