summaryrefslogtreecommitdiff
path: root/CSharp/Ivy
diff options
context:
space:
mode:
authorfcolin2007-02-01 09:49:21 +0000
committerfcolin2007-02-01 09:49:21 +0000
commit180767699668c165d6798a9a1d4e1034bb9d5012 (patch)
tree0e443a5295351bb330cfcd152df13b29a85a967a /CSharp/Ivy
parente2a7b001b5673c792129581bff688e367e706708 (diff)
downloadivy-csharp-180767699668c165d6798a9a1d4e1034bb9d5012.zip
ivy-csharp-180767699668c165d6798a9a1d4e1034bb9d5012.tar.gz
ivy-csharp-180767699668c165d6798a9a1d4e1034bb9d5012.tar.bz2
ivy-csharp-180767699668c165d6798a9a1d4e1034bb9d5012.tar.xz
Utilisateur : Fcolin Date : 2/06/06 Heure : 16:47 Créé Commentaire: Mise en conformite du code avec les guidelines , et changement prototype evenements (vss 1)
Diffstat (limited to 'CSharp/Ivy')
-rw-r--r--CSharp/Ivy/Ivy/IvyEventArgs.cs81
1 files changed, 81 insertions, 0 deletions
diff --git a/CSharp/Ivy/Ivy/IvyEventArgs.cs b/CSharp/Ivy/Ivy/IvyEventArgs.cs
new file mode 100644
index 0000000..a4f033a
--- /dev/null
+++ b/CSharp/Ivy/Ivy/IvyEventArgs.cs
@@ -0,0 +1,81 @@
+using System;
+using System.Collections.Specialized;
+using System.Text;
+
+namespace IvyBus
+{
+ /// <summary> The EventArgs Classes
+ /// </summary>
+ ///
+ public class IvyEventArgs : EventArgs
+ {
+ private IvyClient client;
+ private int id;
+ private string arg;
+
+ public IvyClient Client
+ {
+ get { return client; }
+ }
+
+ public int Id
+ {
+ get { return id; }
+ }
+
+ public string Argument
+ {
+ get { return arg; }
+ }
+ public IvyEventArgs(IvyClient app, int id, string arg)
+ {
+ this.client = app;
+ this.id = id;
+ this.arg = arg;
+ }
+ }
+ public class IvyDieEventArgs : IvyEventArgs
+ {
+ /* return value for Die Event */
+ private bool forceExit;
+
+ public bool ForceExit
+ {
+ get { return forceExit; }
+ set { forceExit = value; }
+ }
+ public IvyDieEventArgs(IvyClient app, int id, string arg)
+ : base(app, id, arg)
+ {
+ forceExit = true;
+ }
+ }
+ public class IvyMessageEventArgs : EventArgs
+ {
+ private IvyClient cleint;
+ private int id;
+ private StringCollection args;
+
+ public IvyClient Client
+ {
+ get { return cleint; }
+ }
+
+ public int Id
+ {
+ get { return id; }
+ }
+
+ public StringCollection Arguments
+ {
+ get { return args; }
+ }
+ public IvyMessageEventArgs(IvyClient app, int id, string[] args)
+ {
+ this.cleint = app;
+ this.id = id;
+ this.args = new StringCollection();
+ this.args.AddRange(args);
+ }
+ }
+}