完善发送消息和接收消息接口

This commit is contained in:
2018-12-18 23:35:11 +08:00
parent 59389fdca3
commit 6d05a3d04e
8 changed files with 170 additions and 57 deletions
+6
View File
@@ -23,6 +23,7 @@ namespace StormChat
private void LogForm_Load(object sender, EventArgs e)
{
StormClient.OnLoginDone += this.LoginDone;
StormClient.OnMessage += this.ShowMessage;
}
private void btnLogin_Click(object sender, EventArgs e)
{
@@ -57,5 +58,10 @@ namespace StormChat
else
f.Invoke();
}
private void ShowMessage(Interact.Message m)
{
MessageBox.Show(m.Text);
}
}
}