summaryrefslogtreecommitdiff
path: root/IvyControl/IvyDomain.cs
diff options
context:
space:
mode:
authorfcolin2007-11-09 10:13:36 +0000
committerfcolin2007-11-09 10:13:36 +0000
commitbd1c7b7348b8e5532040b178a891f5295e46d35b (patch)
tree972b75c352eb53ac18ddbbbc61a4e269c3c54452 /IvyControl/IvyDomain.cs
parenta62200e4623abd319d207ae65dc1260d0527197a (diff)
downloadivy-csharp-bd1c7b7348b8e5532040b178a891f5295e46d35b.zip
ivy-csharp-bd1c7b7348b8e5532040b178a891f5295e46d35b.tar.gz
ivy-csharp-bd1c7b7348b8e5532040b178a891f5295e46d35b.tar.bz2
ivy-csharp-bd1c7b7348b8e5532040b178a891f5295e46d35b.tar.xz
eparation Windows Form
Diffstat (limited to 'IvyControl/IvyDomain.cs')
-rw-r--r--IvyControl/IvyDomain.cs61
1 files changed, 0 insertions, 61 deletions
diff --git a/IvyControl/IvyDomain.cs b/IvyControl/IvyDomain.cs
deleted file mode 100644
index 7099db7..0000000
--- a/IvyControl/IvyDomain.cs
+++ /dev/null
@@ -1,61 +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();
- SetDefault();
- }
- 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;
- }
-
- }
-}