完善发送消息和接收消息接口
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user