diff options
-rw-r--r-- | CSharp/Ivy/IvyPPC/IvyDomain.cs | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/CSharp/Ivy/IvyPPC/IvyDomain.cs b/CSharp/Ivy/IvyPPC/IvyDomain.cs index 60b6515..4fe60bf 100644 --- a/CSharp/Ivy/IvyPPC/IvyDomain.cs +++ b/CSharp/Ivy/IvyPPC/IvyDomain.cs @@ -11,26 +11,28 @@ namespace IvyBus public partial class IvyDomain : UserControl
{
public Ivy ivy;
+ private string appname;
+ private string ready;
[Category("Ivy")]
public string AppName
{
- get { return appname.Text; }
- set { appname.Text = value; }
+ get { return appname; }
+ set { appname = value; }
}
[Category("Ivy")]
- public string Ready
+ public string AppReadyMessage
{
- get { return ready.Text; }
- set { ready.Text = value; }
+ get { return ready; }
+ set { ready = value; }
}
[Category("Ivy")]
public string Domain
{
- get { return domain.Text; }
- set { domain.Text = value; }
+ get { return ivybus.Text; }
+ set { ivybus.Text = value; }
}
[Category("Ivy")]
public event Ivy.ClientConnectedHandler clientConnected
@@ -104,12 +106,15 @@ namespace IvyBus ivy.directMessageReceived -= value;
}
}
+
+
public IvyDomain()
{
InitializeComponent();
- ivy = new Ivy(this);
+ ivy = new Ivy(appname,ready,this);
}
+
private void textBox1_Validating(object sender, CancelEventArgs e)
{
e.Cancel = false;
@@ -118,7 +123,13 @@ namespace IvyBus private void textBox1_Validated(object sender, EventArgs e)
{
ivy.stop();
- ivy.start(domain.Text);
+ ivy.start(ivybus.Text);
}
+
+ private void toolStripContainer1_TopToolStripPanel_Click(object sender, EventArgs e)
+ {
+
+ }
+
}
}
|