diff options
-rw-r--r-- | CSharp/Ivy/IvyProbe/IvyProbe.cs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/CSharp/Ivy/IvyProbe/IvyProbe.cs b/CSharp/Ivy/IvyProbe/IvyProbe.cs index 00575b7..5e72f68 100644 --- a/CSharp/Ivy/IvyProbe/IvyProbe.cs +++ b/CSharp/Ivy/IvyProbe/IvyProbe.cs @@ -30,7 +30,7 @@ namespace IvyTest InitializeComponent();
regexp = "";
- bus = new Ivy("C# TESTBUS", "Testbus ridi");
+ bus = new Ivy("C# TESTBUS", "Testbus ridi",this);
bus.Debug = true;
bus.clientConnected += new Ivy.ClientConnectedHandler( connect );
bus.clientDisconnected += new Ivy.ClientDisconnectedHandler( disconnect );
@@ -97,7 +97,8 @@ namespace IvyTest this.tbRegexp.Name = "tbRegexp";
this.tbRegexp.Size = new System.Drawing.Size(224, 20);
this.tbRegexp.TabIndex = 2;
- this.tbRegexp.Text = "regexp";
+ this.tbRegexp.Text = "(.*)";
+ this.tbRegexp.TextChanged += new System.EventHandler(this.tbRegexp_TextChanged);
//
// tbMsg
//
@@ -234,6 +235,11 @@ namespace IvyTest {
btSend.Enabled = (tbMsg.Text != "");
}
+
+ private void tbRegexp_TextChanged(object sender, System.EventArgs e)
+ {
+ btBind.Enabled = (tbRegexp.Text != "");
+ }
}
|