summaryrefslogtreecommitdiff
path: root/IvyProbe/IvyProbe.cs
diff options
context:
space:
mode:
authorfcolin2008-10-10 15:45:54 +0000
committerfcolin2008-10-10 15:45:54 +0000
commit3c9d0c18a19de1f1ec1c4e77f6b89fdf84d39605 (patch)
treeb4c691f61e44c2310887ccb77b94a519a73a7fdb /IvyProbe/IvyProbe.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 'IvyProbe/IvyProbe.cs')
-rw-r--r--IvyProbe/IvyProbe.cs17
1 files changed, 12 insertions, 5 deletions
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)
{