using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Text; using System.Windows.Forms; namespace IvyBus { public partial class IvyDomain : UserControl { public event EventHandler DomainChanged; [Category("Ivy")] public string Domain { get { return ivybus.Text; } set { ivybus.Text = value; if (DomainChanged != null ) DomainChanged(this, EventArgs.Empty); } } public IvyDomain() { InitializeComponent(); } private void ivybus_Validating(object sender, CancelEventArgs e) { e.Cancel = !Ivy.ValidatingDomain(ivybus.Text); } private void ivybus_Validated(object sender, EventArgs e) { Domain = ivybus.Text; } private void IvyDomain_Load(object sender, EventArgs e) { ivybus.Text = Ivy.getDomain(ivybus.Text); } } }