1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
|
namespace IvyProbe
{
partial class IvyProbe
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.tbRegexp = new System.Windows.Forms.TextBox();
this.tbMsg = new System.Windows.Forms.TextBox();
this.ta = new System.Windows.Forms.TextBox();
this.btBind = new System.Windows.Forms.Button();
this.btSend = new System.Windows.Forms.Button();
this.btUnbind = new System.Windows.Forms.Button();
this.btBindSimple = new System.Windows.Forms.Button();
this.busDomain = new IvyBus.IvyDomain();
this.bus = new IvyBus.Ivy(this.components);
this.ivyApplicationBinding1 = new IvyBus.IvyApplicationBinding(this.components);
((System.ComponentModel.ISupportInitialize)(this.bus)).BeginInit();
this.SuspendLayout();
//
// label1
//
this.label1.Location = new System.Drawing.Point(4, 31);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(24, 16);
this.label1.TabIndex = 0;
this.label1.Text = "exp:";
//
// label2
//
this.label2.Location = new System.Drawing.Point(8, 244);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(56, 16);
this.label2.TabIndex = 1;
this.label2.Text = "Msg:";
//
// tbRegexp
//
this.tbRegexp.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tbRegexp.Location = new System.Drawing.Point(28, 27);
this.tbRegexp.Name = "tbRegexp";
this.tbRegexp.Size = new System.Drawing.Size(228, 20);
this.tbRegexp.TabIndex = 2;
this.tbRegexp.Text = "(.*)";
this.tbRegexp.TextChanged += new System.EventHandler(this.tbRegexp_TextChanged);
//
// tbMsg
//
this.tbMsg.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tbMsg.Location = new System.Drawing.Point(72, 240);
this.tbMsg.Name = "tbMsg";
this.tbMsg.Size = new System.Drawing.Size(326, 20);
this.tbMsg.TabIndex = 3;
this.tbMsg.Text = "msg";
this.tbMsg.TextChanged += new System.EventHandler(this.tbMsg_TextChanged);
//
// ta
//
this.ta.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.ta.Location = new System.Drawing.Point(0, 50);
this.ta.Multiline = true;
this.ta.Name = "ta";
this.ta.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.ta.Size = new System.Drawing.Size(478, 184);
this.ta.TabIndex = 4;
//
// btBind
//
this.btBind.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btBind.Location = new System.Drawing.Point(262, 27);
this.btBind.Name = "btBind";
this.btBind.Size = new System.Drawing.Size(73, 20);
this.btBind.TabIndex = 5;
this.btBind.Text = "bind regexp";
this.btBind.Click += new System.EventHandler(this.RegexpCB);
//
// btSend
//
this.btSend.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btSend.Location = new System.Drawing.Point(406, 240);
this.btSend.Name = "btSend";
this.btSend.Size = new System.Drawing.Size(64, 24);
this.btSend.TabIndex = 6;
this.btSend.Text = "Send";
this.btSend.Click += new System.EventHandler(this.SendCB);
//
// btUnbind
//
this.btUnbind.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btUnbind.Location = new System.Drawing.Point(426, 27);
this.btUnbind.Name = "btUnbind";
this.btUnbind.Size = new System.Drawing.Size(48, 20);
this.btUnbind.TabIndex = 7;
this.btUnbind.Text = "unbind";
this.btUnbind.Click += new System.EventHandler(this.btUnbind_Click);
//
// btBindSimple
//
this.btBindSimple.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btBindSimple.Location = new System.Drawing.Point(341, 27);
this.btBindSimple.Name = "btBindSimple";
this.btBindSimple.Size = new System.Drawing.Size(77, 20);
this.btBindSimple.TabIndex = 8;
this.btBindSimple.Text = "bind simple";
this.btBindSimple.Click += new System.EventHandler(this.ExpressionCB);
//
// busDomain
//
this.busDomain.Location = new System.Drawing.Point(0, 0);
this.busDomain.Margin = new System.Windows.Forms.Padding(0);
this.busDomain.Name = "busDomain";
this.busDomain.Size = new System.Drawing.Size(256, 24);
this.busDomain.TabIndex = 0;
this.busDomain.DomainChanged += new System.EventHandler(this.busDomain_DomainChanged);
//
// bus
//
this.bus.AppName = "IvyProbeC#";
this.bus.AppPriority = ((ushort)(100));
this.bus.Bindings.Add(this.ivyApplicationBinding1);
this.bus.Culture = new System.Globalization.CultureInfo("en-US");
this.bus.ReadyMessage = "IvyProbeC# ready";
this.bus.BindingFilter += new System.EventHandler<IvyBus.IvyEventArgs>(this.bus_BindingFilter);
this.bus.ErrorMessage += new System.EventHandler<IvyBus.IvyEventArgs>(this.bus_ErrorMessage);
this.bus.DirectMessageReceived += new System.EventHandler<IvyBus.IvyEventArgs>(this.directMessage);
this.bus.BindingAdd += new System.EventHandler<IvyBus.IvyEventArgs>(this.bus_addBinding);
this.bus.ClientConnected += new System.EventHandler<IvyBus.IvyEventArgs>(this.connect);
this.bus.ClientDisconnected += new System.EventHandler<IvyBus.IvyEventArgs>(this.disconnect);
this.bus.BindingRemove += new System.EventHandler<IvyBus.IvyEventArgs>(this.bus_removeBinding);
this.bus.DieReceived += new System.EventHandler<IvyBus.IvyDieEventArgs>(this.die);
//
// ivyApplicationBinding1
//
this.ivyApplicationBinding1.Arguments.Add("Name");
this.ivyApplicationBinding1.Binding = IvyBus.BindingType.Regexp;
this.ivyApplicationBinding1.Expression = "^{0}(.*)";
this.ivyApplicationBinding1.Callback += new System.EventHandler<IvyBus.IvyMessageEventArgs>(this.ivyprobe);
//
// IvyProbe
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(478, 266);
this.Controls.Add(this.busDomain);
this.Controls.Add(this.btBindSimple);
this.Controls.Add(this.btUnbind);
this.Controls.Add(this.btSend);
this.Controls.Add(this.btBind);
this.Controls.Add(this.ta);
this.Controls.Add(this.tbMsg);
this.Controls.Add(this.tbRegexp);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.DoubleBuffered = true;
this.Name = "IvyProbe";
this.Text = "IvyProbe";
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.IvyProbe_FormClosed);
this.Load += new System.EventHandler(this.IvyProbe_Load);
((System.ComponentModel.ISupportInitialize)(this.bus)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox tbRegexp;
private System.Windows.Forms.TextBox tbMsg;
private System.Windows.Forms.Button btBind;
private System.Windows.Forms.Button btSend;
private System.Windows.Forms.TextBox ta;
private System.Windows.Forms.Button btBindSimple;
private System.Windows.Forms.Button btUnbind;
private IvyBus.IvyDomain busDomain;
private IvyBus.Ivy bus;
private IvyBus.IvyApplicationBinding ivyApplicationBinding1;
}
}
|