diff options
author | fcolin | 2007-02-01 09:43:20 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 09:43:20 +0000 |
commit | 1d3e414de1d08c670dda9f851775838e05ceec31 (patch) | |
tree | 6a1f9a4d39ac3649804b4c20a8760802b59ece09 | |
parent | a247dcbf7d61955fabde76d541c1b75faa44a129 (diff) | |
download | ivy-csharp-1d3e414de1d08c670dda9f851775838e05ceec31.zip ivy-csharp-1d3e414de1d08c670dda9f851775838e05ceec31.tar.gz ivy-csharp-1d3e414de1d08c670dda9f851775838e05ceec31.tar.bz2 ivy-csharp-1d3e414de1d08c670dda9f851775838e05ceec31.tar.xz |
Utilisateur : Fcolin Date : 25/01/06 Heure : 18:45 Archivé dans $/CSharp/Ivy/Ivy Commentaire: (vss 42)
-rw-r--r-- | CSharp/Ivy/Ivy/Ivy.cs | 26 |
1 files changed, 24 insertions, 2 deletions
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)
{
|