From 5e310bef48ed719d15d88aafb9b92e674cb42b96 Mon Sep 17 00:00:00 2001 From: fcolin Date: Mon, 18 Oct 2010 15:42:04 +0000 Subject: utilisation de socket IPV6 si le domain contient un multicast IPV6 genre FF02::1 --- IvyControl/IvyControl.cs | 13 ++++++++++++- IvyControl/IvyDomain.Designer.cs | 17 +++++++++++++---- IvyControl/IvyDomain.cs | 2 ++ IvyControl/IvyDomain.resx | 3 +++ 4 files changed, 30 insertions(+), 5 deletions(-) (limited to 'IvyControl') diff --git a/IvyControl/IvyControl.cs b/IvyControl/IvyControl.cs index 20b43be..47dfd8c 100644 --- a/IvyControl/IvyControl.cs +++ b/IvyControl/IvyControl.cs @@ -183,7 +183,18 @@ namespace IvyBus } - +#if (!PocketPC) + [Category("Ivy")] +#endif + public bool IpV6 + { + get + { + return ivy.IpV6; + } + + } + /// AppName the application name #if (!PocketPC) diff --git a/IvyControl/IvyDomain.Designer.cs b/IvyControl/IvyDomain.Designer.cs index 3f89b6a..d66db15 100644 --- a/IvyControl/IvyDomain.Designer.cs +++ b/IvyControl/IvyDomain.Designer.cs @@ -28,8 +28,11 @@ namespace IvyBus /// private void InitializeComponent() { + this.components = new System.ComponentModel.Container(); this.label1 = new System.Windows.Forms.Label(); this.ivybus = new System.Windows.Forms.TextBox(); + this.errorProvider1 = new System.Windows.Forms.ErrorProvider(this.components); + ((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).BeginInit(); this.SuspendLayout(); // // label1 @@ -39,6 +42,7 @@ namespace IvyBus this.label1.Location = new System.Drawing.Point(0, 5); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(24, 13); + this.label1.TabIndex = 0; this.label1.Text = "Ivy:"; // // ivybus @@ -50,8 +54,13 @@ namespace IvyBus this.ivybus.Name = "ivybus"; this.ivybus.Size = new System.Drawing.Size(129, 20); this.ivybus.TabIndex = 2; - this.ivybus.Validated += new System.EventHandler(this.ivybus_Validated); this.ivybus.Validating += new System.ComponentModel.CancelEventHandler(this.ivybus_Validating); + this.ivybus.Validated += new System.EventHandler(this.ivybus_Validated); + // + // errorProvider1 + // + this.errorProvider1.BlinkStyle = System.Windows.Forms.ErrorBlinkStyle.AlwaysBlink; + this.errorProvider1.ContainerControl = this; // // IvyDomain // @@ -60,10 +69,9 @@ namespace IvyBus this.Controls.Add(this.ivybus); this.Name = "IvyDomain"; this.Size = new System.Drawing.Size(159, 22); + ((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).EndInit(); this.ResumeLayout(false); -#if (!PocketPC) - this.PerformLayout(); -#endif + this.PerformLayout(); } @@ -71,5 +79,6 @@ namespace IvyBus private System.Windows.Forms.Label label1; private System.Windows.Forms.TextBox ivybus; + private System.Windows.Forms.ErrorProvider errorProvider1; } } diff --git a/IvyControl/IvyDomain.cs b/IvyControl/IvyDomain.cs index 36e749a..92b7dbd 100644 --- a/IvyControl/IvyDomain.cs +++ b/IvyControl/IvyDomain.cs @@ -49,10 +49,12 @@ namespace IvyBus private void ivybus_Validating(object sender, CancelEventArgs e) { e.Cancel = !Ivy.ValidatingDomain(ivybus.Text); + errorProvider1.SetError(this.ivybus, e.Cancel ? "Bad Address":"" ); } private void ivybus_Validated(object sender, EventArgs e) { + errorProvider1.SetError(this.ivybus, ""); if ( domain != ivybus.Text ) Domain = ivybus.Text; } diff --git a/IvyControl/IvyDomain.resx b/IvyControl/IvyDomain.resx index ff31a6d..e8675cd 100644 --- a/IvyControl/IvyDomain.resx +++ b/IvyControl/IvyDomain.resx @@ -117,4 +117,7 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 17, 17 + \ No newline at end of file -- cgit v1.1