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 --- IvyProbe/IvyProbe.Designer.cs | 6 +++--- IvyProbe/IvyProbe.cs | 17 ++++++++++++----- IvyProbe/IvyProbe.csproj | 7 ++++--- IvyProbe/Properties/Settings.Designer.cs | 10 +++++----- 4 files changed, 24 insertions(+), 16 deletions(-) (limited to 'IvyProbe') diff --git a/IvyProbe/IvyProbe.Designer.cs b/IvyProbe/IvyProbe.Designer.cs index e0109e3..af5222a 100644 --- a/IvyProbe/IvyProbe.Designer.cs +++ b/IvyProbe/IvyProbe.Designer.cs @@ -161,8 +161,8 @@ namespace IvyProbe // ivyApplicationBinding1 // this.ivyApplicationBinding1.Arguments.Add("Name"); - this.ivyApplicationBinding1.Binding = IvyBus.BindingType.Regexp; - this.ivyApplicationBinding1.Expression = "^{0}(.*)"; + this.ivyApplicationBinding1.Binding = IvyBus.BindingType.RegularExpression; + this.ivyApplicationBinding1.Expression = "^%0%(.*)"; this.ivyApplicationBinding1.Callback += new System.EventHandler(this.ivyprobe); // // IvyProbe @@ -179,7 +179,7 @@ namespace IvyProbe this.Controls.Add(this.tbRegexp); this.Controls.Add(this.label2); this.Controls.Add(this.label1); - this.DoubleBuffered = true; + //this.DoubleBuffered = true; this.Name = "IvyProbe"; this.Text = "IvyProbe"; this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.IvyProbe_FormClosed); diff --git a/IvyProbe/IvyProbe.cs b/IvyProbe/IvyProbe.cs index d6ef049..270dbd8 100644 --- a/IvyProbe/IvyProbe.cs +++ b/IvyProbe/IvyProbe.cs @@ -8,6 +8,7 @@ namespace IvyProbe using System.Runtime.Serialization.Formatters.Binary; using System.Reflection; using System.Net; + using System.Text; partial class IvyProbe : System.Windows.Forms.Form { @@ -23,6 +24,7 @@ namespace IvyProbe private void append(string s) { // je mettrais bien la date, aussi. + if ( ! ta.IsDisposed ) ta.AppendText(s + "\r\n"); } @@ -44,11 +46,16 @@ namespace IvyProbe } private void receive(object sender, IvyMessageEventArgs e) { - string receive_str = "client " + e.Client.ApplicationName + " envoie: ["; - receive_str += string.Join(",", e.Arguments); - receive_str += "]"; - receive_str += " for '" + ((IvyApplicationBinding)sender).FormatedExpression + "'"; - append(receive_str); + StringBuilder sb = new StringBuilder(); + sb.Append("client "); + sb.Append(e.Client.ApplicationName); + sb.Append(" envoie: ["); + sb.Append( string.Join(",", e.GetArguments())); + sb.Append("]"); + sb.Append(" for '"); + sb.Append(((IvyApplicationBinding)sender).FormattedExpression); + sb.Append("'"); + append(sb.ToString()); } public void RegexpCB(System.Object event_sender, System.EventArgs e) { diff --git a/IvyProbe/IvyProbe.csproj b/IvyProbe/IvyProbe.csproj index 8be9885..60a4df2 100644 --- a/IvyProbe/IvyProbe.csproj +++ b/IvyProbe/IvyProbe.csproj @@ -1,7 +1,7 @@ - + Local - 8.0.50727 + 9.0.30729 2.0 {5EFDDE31-9A31-43EB-8E56-6C29F7EAAD48} SAK @@ -47,6 +47,8 @@ http://www.tls.cena.fr/~fcolin/ClickOnce/IvyProbe/ 1.0.0.%2a true + 2.0 + 3 bin\Debug\ @@ -142,7 +144,6 @@ - SettingsSingleFileGenerator Settings.Designer.cs diff --git a/IvyProbe/Properties/Settings.Designer.cs b/IvyProbe/Properties/Settings.Designer.cs index f2b2c1a..498601b 100644 --- a/IvyProbe/Properties/Settings.Designer.cs +++ b/IvyProbe/Properties/Settings.Designer.cs @@ -1,10 +1,10 @@ //------------------------------------------------------------------------------ // -// This code was generated by a tool. -// Runtime Version:2.0.50727.42 +// Ce code a été généré par un outil. +// Version du runtime :2.0.50727.1433 // -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si +// le code est régénéré. // //------------------------------------------------------------------------------ @@ -12,7 +12,7 @@ namespace IvyProbe.Properties { [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "8.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")] internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); -- cgit v1.1