From 1d3e414de1d08c670dda9f851775838e05ceec31 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 09:43:20 +0000 Subject: Utilisateur : Fcolin Date : 25/01/06 Heure : 18:45 Archivé dans $/CSharp/Ivy/Ivy Commentaire: (vss 42) --- CSharp/Ivy/Ivy/Ivy.cs | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'CSharp') diff --git a/CSharp/Ivy/Ivy/Ivy.cs b/CSharp/Ivy/Ivy/Ivy.cs index fc358fb..7ae6443 100644 --- a/CSharp/Ivy/Ivy/Ivy.cs +++ b/CSharp/Ivy/Ivy/Ivy.cs @@ -26,7 +26,8 @@ namespace IvyBus /// [ToolboxItemFilter("System.Windows.Forms.Form",ToolboxItemFilterType.Allow)] [DesignerCategory("Component")] - public class Ivy : System.ComponentModel.Component + [Description("IVY Main API")] + public class Ivy : System.ComponentModel.Component { /* Event handler */ public delegate void DirectMessageHandler (IvyClient app, int id, string arg ); @@ -201,7 +202,8 @@ namespace IvyBus set { syncControl = value; - AutoBinding(syncControl); + if ( syncControl != null ) + AutoBinding(syncControl); } } internal class MyTcpListener : TcpListener @@ -299,6 +301,26 @@ namespace IvyBus { syncControl = sync; } + + // Dispose ressources + protected override void Dispose(bool disposing) + { + if ( disposing ) stop(); + base.Dispose(disposing); + } + + public override ISite Site + { + get { + Console.WriteLine("Site get " + base.Site); + return base.Site; + } + set{ + base.Site = value; + Console.WriteLine("Site set " + base.Site); + + } + } // Autobinding on static method public void AutoBinding(Type type) { -- cgit v1.1