diff options
Diffstat (limited to 'IvyControl/IvyControl.cs')
-rw-r--r-- | IvyControl/IvyControl.cs | 35 |
1 files changed, 9 insertions, 26 deletions
diff --git a/IvyControl/IvyControl.cs b/IvyControl/IvyControl.cs index a432914..20b43be 100644 --- a/IvyControl/IvyControl.cs +++ b/IvyControl/IvyControl.cs @@ -25,6 +25,7 @@ namespace IvyBus #if (!PocketPC)
using System.ComponentModel.Design;
+ using System.Collections.ObjectModel;
#endif
// using System.Drawing.Design;
@@ -202,24 +203,6 @@ namespace IvyBus }
}
-
- /// <summary>AppPriority the Application Priority: the clients list is sorted against priority</summary>
-#if (!PocketPC)
- [Category("Ivy")]
-#endif
- [DefaultValue(Ivy.DEFAULT_PRIORITY)]
- public ushort AppPriority
- {
- set
- {
- ivy.AppPriority = value;
- }
- get
- {
- return ivy.AppPriority;
- }
-
- }
///<summary>SentMessageClasses the first word token of sent messages
///<remarks> optimise the parsing process when sending messages </remarks>
@@ -231,7 +214,7 @@ namespace IvyBus // sinon bug System.String constructor not found !
[Editor("System.Windows.Forms.Design.StringCollectionEditor, System.Design", "System.Drawing.Design.UITypeEditor, System.Drawing")]
#endif
- public List<string> SentMessageFilter
+ public Collection<string> SentMessageFilter
{
get
{
@@ -293,7 +276,7 @@ namespace IvyBus #endif
Assembly assembly = Assembly.GetCallingAssembly();
if ( assembly != this.GetType().Assembly )
- ivy.BindAttibute(assembly);
+ ivy.BindAttribute(assembly);
}
public IvyControl(IContainer container)
: this()
@@ -303,7 +286,7 @@ namespace IvyBus //TODO Autobinding attribute
Assembly assembly = Assembly.GetCallingAssembly();
if (assembly != this.GetType().Assembly)
- ivy.BindAttibute(assembly);
+ ivy.BindAttribute(assembly);
}
/// <summary>
/// Readies the structures for the software bus connexion.
@@ -337,7 +320,7 @@ namespace IvyBus //TODO Autobinding attribute
Assembly assembly = Assembly.GetCallingAssembly();
if (assembly != this.GetType().Assembly)
- ivy.BindAttibute(assembly);
+ ivy.BindAttribute(assembly);
}
protected override void Dispose(bool disposing)
@@ -375,7 +358,7 @@ namespace IvyBus return ivy.SendMsg(format, args);
}
//
- public ushort BindMsg(IvyApplicationBinding newbind)
+ public int BindMsg(IvyApplicationBinding newbind)
{
return ivy.BindMsg(newbind);
}
@@ -392,7 +375,7 @@ namespace IvyBus /// by another agent. A program doesn't receive its own messages.
/// </remarks>
//
- public ushort BindMsg(string regexp, EventHandler<IvyMessageEventArgs> callback, params object[] args)
+ public int BindMsg(string regexp, EventHandler<IvyMessageEventArgs> callback, params object[] args)
{
return ivy.BindMsg(regexp, callback,args);
}
@@ -401,7 +384,7 @@ namespace IvyBus /// unsubscribes a regular expression
/// </summary>
/// <param name="id">the id of the regular expression, returned when it was bound</param>
- public void UnbindMsg(ushort id)
+ public void UnbindMsg(int id)
{
ivy.UnbindMsg(id);
}
@@ -444,7 +427,7 @@ namespace IvyBus /// </summary>
/// <param name="name">The name of the Ivy agent you're looking for</param>
/// <returns></returns>
- public List<IvyClient> GetClientsByName(string name)
+ public ReadOnlyCollection<IvyClient> GetClientsByName(string name)
{
return ivy.GetClientsByName( name );
|