summaryrefslogtreecommitdiff
path: root/IvyControl/IvyControl.cs
diff options
context:
space:
mode:
authorfcolin2008-10-10 15:45:54 +0000
committerfcolin2008-10-10 15:45:54 +0000
commit3c9d0c18a19de1f1ec1c4e77f6b89fdf84d39605 (patch)
treeb4c691f61e44c2310887ccb77b94a519a73a7fdb /IvyControl/IvyControl.cs
parent8d10e8bbd1e19adc7c70e1101dbb69c213c910dd (diff)
downloadivy-csharp-3c9d0c18a19de1f1ec1c4e77f6b89fdf84d39605.zip
ivy-csharp-3c9d0c18a19de1f1ec1c4e77f6b89fdf84d39605.tar.gz
ivy-csharp-3c9d0c18a19de1f1ec1c4e77f6b89fdf84d39605.tar.bz2
ivy-csharp-3c9d0c18a19de1f1ec1c4e77f6b89fdf84d39605.tar.xz
Ajout de commentaire sur les menbres public
Diffstat (limited to 'IvyControl/IvyControl.cs')
-rw-r--r--IvyControl/IvyControl.cs35
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 );