From 3c9d0c18a19de1f1ec1c4e77f6b89fdf84d39605 Mon Sep 17 00:00:00 2001 From: fcolin Date: Fri, 10 Oct 2008 15:45:54 +0000 Subject: Ajout de commentaire sur les menbres public --- IvyControl/IvyApplicationBindingControl.cs | 17 +++++---------- IvyControl/IvyControl.cs | 35 ++++++++---------------------- IvyControl/IvyControl.csproj | 27 ++++++++++++++++++++++- IvyControl/IvyDomain.cs | 2 +- 4 files changed, 41 insertions(+), 40 deletions(-) (limited to 'IvyControl') diff --git a/IvyControl/IvyApplicationBindingControl.cs b/IvyControl/IvyApplicationBindingControl.cs index c4c236f..5772295 100644 --- a/IvyControl/IvyApplicationBindingControl.cs +++ b/IvyControl/IvyApplicationBindingControl.cs @@ -4,6 +4,7 @@ using System.Collections.Specialized; using System.Text; using System.ComponentModel; using System.Threading; +using System.Collections.ObjectModel; namespace IvyBus { @@ -34,21 +35,12 @@ namespace IvyBus [Browsable(false)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] #endif - public ushort Key + public int Key { get { return binding.Key; } set { binding.Key = value; } } -#if (!PocketPC) - [Browsable(false)] - [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] -#endif - public object[] Args - { - get { return binding.Args; } - set { binding.Args = value; } - } #if (!PocketPC) [Category("Ivy")] @@ -63,7 +55,7 @@ namespace IvyBus { get { - return binding.FormatedExpression; + return binding.FormattedExpression; } } @@ -83,7 +75,7 @@ namespace IvyBus [Description("Arguments used when formating the expression")] #endif - public List Arguments + public Collection Arguments { get { @@ -116,6 +108,7 @@ namespace IvyBus { container.Add(this); } + } } 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 } } - - /// AppPriority the Application Priority: the clients list is sorted against priority -#if (!PocketPC) - [Category("Ivy")] -#endif - [DefaultValue(Ivy.DEFAULT_PRIORITY)] - public ushort AppPriority - { - set - { - ivy.AppPriority = value; - } - get - { - return ivy.AppPriority; - } - - } ///SentMessageClasses the first word token of sent messages /// optimise the parsing process when sending messages @@ -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 SentMessageFilter + public Collection 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); } /// /// 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. /// // - public ushort BindMsg(string regexp, EventHandler callback, params object[] args) + public int BindMsg(string regexp, EventHandler callback, params object[] args) { return ivy.BindMsg(regexp, callback,args); } @@ -401,7 +384,7 @@ namespace IvyBus /// unsubscribes a regular expression /// /// the id of the regular expression, returned when it was bound - public void UnbindMsg(ushort id) + public void UnbindMsg(int id) { ivy.UnbindMsg(id); } @@ -444,7 +427,7 @@ namespace IvyBus /// /// The name of the Ivy agent you're looking for /// - public List GetClientsByName(string name) + public ReadOnlyCollection GetClientsByName(string name) { return ivy.GetClientsByName( name ); diff --git a/IvyControl/IvyControl.csproj b/IvyControl/IvyControl.csproj index 786dc02..55ff36a 100644 --- a/IvyControl/IvyControl.csproj +++ b/IvyControl/IvyControl.csproj @@ -1,4 +1,4 @@ - + Debug AnyCPU @@ -13,6 +13,11 @@ SAK SAK SAK + + + + + 2.0 true @@ -31,6 +36,26 @@ prompt 4 + + true + bin\x86\Debug\ + DEBUG;TRACE + full + x86 + true + GlobalSuppressions.cs + prompt + + + bin\x86\Release\ + TRACE + true + pdbonly + x86 + true + GlobalSuppressions.cs + prompt + diff --git a/IvyControl/IvyDomain.cs b/IvyControl/IvyDomain.cs index 7099db7..36e749a 100644 --- a/IvyControl/IvyDomain.cs +++ b/IvyControl/IvyDomain.cs @@ -8,7 +8,7 @@ namespace IvyBus { public partial class IvyDomain : UserControl { - private string domain = ""; + private string domain = string.Empty; public event EventHandler DomainChanged; #if (!PocketPC) [Category("Ivy")] -- cgit v1.1