From ac06bbab4fa870ee334112778f2b3d60c7ac34dd Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 09:55:58 +0000 Subject: Utilisateur : Fcolin Date : 14/02/06 Heure : 11:09 Archivé dans $/CSharp/Ivy/IvyPPC Commentaire: (vss 61) --- CSharp/Ivy/IvyPPC/Ivy.cs | 54 +++++++++++++----------------------------------- 1 file changed, 14 insertions(+), 40 deletions(-) (limited to 'CSharp/Ivy/IvyPPC') diff --git a/CSharp/Ivy/IvyPPC/Ivy.cs b/CSharp/Ivy/IvyPPC/Ivy.cs index b0a71c8..5b15275 100644 --- a/CSharp/Ivy/IvyPPC/Ivy.cs +++ b/CSharp/Ivy/IvyPPC/Ivy.cs @@ -27,12 +27,12 @@ namespace IvyBus /// The Main bus Class /// /// - #if (!PocketPC) - [ToolboxItemFilter("System.Windows.Forms.Form",ToolboxItemFilterType.Allow)] - [DesignerCategory("Component")] - [Description("IVY Main API")] + // Show this property in the property grid. + [ToolboxItemFilter("System.Windows.Forms.Form", ToolboxItemFilterType.Allow)] + [Description("IVY Main API")] #endif + [DesignerCategory("Component")] public class Ivy : System.ComponentModel.Component, ISupportInitialize { /* return value for Die Event */ @@ -70,10 +70,10 @@ namespace IvyBus public event ErrorMessageHandler ErrorMessage; #if (!PocketPC) - [Category("Ivy")] [Bindable(true)] - [DefaultValue(false)] + [Category("Ivy")] #endif + [DefaultValue(false)] public static bool VerboseDebug { get @@ -86,7 +86,6 @@ namespace IvyBus } } - #if (!PocketPC) [Category("Ivy")] #endif @@ -104,7 +103,6 @@ namespace IvyBus } /// IvyClients accesses the list of the connected clients - #if (!PocketPC) [Browsable(false)] #endif @@ -141,8 +139,8 @@ namespace IvyBus #if (!PocketPC) [Category("Ivy")] [Bindable(true)] - [DefaultValue(null)] #endif + [DefaultValue(null)] public string AppName { set @@ -169,11 +167,10 @@ namespace IvyBus } /// AppPriority the Application Priority: the clients list is sorted against priority - #if (!PocketPC) [Category("Ivy")] - [DefaultValue(DEFAULT_PRIORITY)] #endif + [DefaultValue(DEFAULT_PRIORITY)] public ushort AppPriority { set @@ -223,11 +220,10 @@ namespace IvyBus ///SentMessageClasses the first word token of sent messages /// optimise the parsing process when sending messages /// - #if (!PocketPC) [Category("Ivy")] - [DefaultValue(null)] #endif + [DefaultValue(null)] public string[] SentMessageClasses { get @@ -243,20 +239,19 @@ namespace IvyBus /// ReadyMessage message send when Application receive all the regexp at the connection of the client #if (!PocketPC) - [Category("Ivy")] [Bindable(true)] - [DefaultValue(null)] + [Category("Ivy")] #endif + [DefaultValue(null)] public string ReadyMessage { get { return ready_message; } set { ready_message = value; } } - #if (!PocketPC) [Category("Ivy")] - [DefaultValue(null)] #endif + [DefaultValue(null)] public Control SyncControl { get { return syncControl; } @@ -276,28 +271,7 @@ namespace IvyBus return this.Active; } } -#if PocketPC - internal class Createdelegate - { - object eventtarget; - MethodInfo mymethod; - object [] methodparams = new Object[2]; - - public void Invoke(object sender, System.EventArgs e) - { - methodparams[1] = e; - mymethod.Invoke(eventtarget, methodparams); - } - - public Createdelegate(MethodInfo mi, object eventTarget, object eventObject) - { - eventtarget = eventTarget; - mymethod = mi; - methodparams[0] = eventObject; - methodparams[1] = null; - } - } -#endif + /// the name of the application on the bus internal string appName; /// the port for the UDP rendez vous, if none is supplied @@ -810,7 +784,7 @@ namespace IvyBus syncControl.Invoke(ClientDisconnected, new object[] { app }); else ClientDisconnected(app); } - catch (ObjectDisposedException ie) + catch (ObjectDisposedException ) { // protect terminaison } -- cgit v1.1