diff options
-rw-r--r-- | CSharp/Ivy/IvyPPC/Ivy.cs | 54 |
1 files changed, 14 insertions, 40 deletions
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 /// <summary> The Main bus Class
/// </summary>
///
-
#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 }
/// <summary>IvyClients accesses the list of the connected clients</summary>
-
#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 }
/// <summary>AppPriority the Application Priority: the clients list is sorted against priority</summary>
-
#if (!PocketPC)
[Category("Ivy")]
- [DefaultValue(DEFAULT_PRIORITY)]
#endif
+ [DefaultValue(DEFAULT_PRIORITY)]
public ushort AppPriority
{
set
@@ -223,11 +220,10 @@ namespace IvyBus ///<summary>SentMessageClasses the first word token of sent messages
///<remarks> optimise the parsing process when sending messages </remarks>
///</summary>
-
#if (!PocketPC)
[Category("Ivy")]
- [DefaultValue(null)]
#endif
+ [DefaultValue(null)]
public string[] SentMessageClasses
{
get
@@ -243,20 +239,19 @@ namespace IvyBus /// <summary>ReadyMessage message send when Application receive all the regexp at the connection of the client</summary>
#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
}
|