private void mnuShowHistoryLog_Click(object sender, EventArgs e) { if (uiLog.Messages.Count <= 0) { UI.MsgBox("暂无历史消息"); return; } var frm = new FrmShowHistoryMessage(uiLog.Messages); frm.ShowDialog(); }